cast/aes

AES-256-ECB (Rijndael-128) pure PHP demo.

3.2.0 2022-11-26 23:46 UTC

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: