سؤال

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