문제

I already use some sha1/MD5 encryption techniques but i need to create a PHP class to encrypt/decrypt data using AES-256 with strong security. How can i do that ? I saw a lot of code over the net (thks to google) but don't find clear way to implement it

도움이 되었습니까?

해결책 2

I finally found something in various places and i create a small class which is a yii (php framework) plugin. You could look at it and use it on yii project or any php project. Feel free to comment this.

https://github.com/lucbonnin/aes256_yii_extension

다른 팁

Just use MCRYPT_RIJNDAEL_128 with 256 bit key

Check this out: https://gist.github.com/RiANOl/1077723

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top