Php Aes加密类

今天写了一个php的AES加密类。适用于Yii的扩展。

如果不用在Yii框架中,把代码中Yii::app()->params[‘encryptKey’] 换成你对应的默认key就可以了。

代码见github:

https://github.com/wkii/utils/blob/master/Yii/extensions/PhpAes.php

 

This entry was posted in PHP & MYSQL and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*