Question

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

Was it helpful?

Solution 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

OTHER TIPS

Just use MCRYPT_RIJNDAEL_128 with 256 bit key

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top