phpmodules/encryption

1.0.0 2019-09-18 04:23 UTC

This package is auto-updated.

Last update: 2024-12-18 16:42:34 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);