Home  >  Article  >  Database  >  Php Aes加密类

Php Aes加密类

WBOY
WBOYOriginal
2016-06-07 16:38:451012browse

今天写了一个php的AES加密类。适用于Yii的扩展。 如果不用在Yii框架中,把代码中Yii::app()-params['encryptKey'] 换成你对应的默认key就可以了。 代码见github: https://github.com/wkii/utils/blob/master/Yii/extensions/PhpAes.php 原文地址:Php Aes加

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

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

代码见github:

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn