cast / aes
AES-256-ECB (Rijndael-128) pure PHP demo.
3.2.0
2022-11-26 23:46 UTC
Requires
- php-64bit: ^5.3|^7.3|^8.0
- phpaes/phpaes: 3.1.0
Requires (Dev)
- ext-openssl: *
- phpunit/phpunit: ^9
This package is auto-updated.
Last update: 2024-10-27 04:02:52 UTC
README
AES-256-ECB (Rijndael-128) pure PHP demo. Comparing with OpenSSL (ext-openssl).
Install:
composer require cast/aes
Usage:
<?php use PhpAes\Aes; $aes = new Aes($key, 'ECB'); $aesCipherText = $aes->encrypt($plaintext); $aesDecrypted = $aes->decrypt($aesCipherText);
Based on https://github.com/phillipsdata/phpaes
Links: