phpmodules/encryption

1.0.0 2019-09-18 04:23 UTC

This package is auto-updated.

Last update: 2024-10-18 16:11:04 UTC


README

composer require phpmodules/encryption

Usage

<?php

use PHPModules\Encryption\Encrypter;

$encrypter = new Encrypter('secret key');
$data = $encrypter->encrypt('secret message');

$result = $encrypter->decrypt($data);
var_dump($result);