cast/aes

AES-256-ECB (Rijndael-128) 纯PHP演示。

3.2.0 2022-11-26 23:46 UTC

This package is auto-updated.

Last update: 2024-09-27 03:47:37 UTC


README

AES-256-ECB (Rijndael-128) 纯PHP演示。与OpenSSL (ext-openssl) 进行比较。

安装

composer require cast/aes

用法

<?php
use PhpAes\Aes;

$aes = new Aes($key, 'ECB');
$aesCipherText = $aes->encrypt($plaintext);
$aesDecrypted = $aes->decrypt($aesCipherText);

基于 https://github.com/phillipsdata/phpaes

链接