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.
How to use AES256 in PHP - encryption / decryption
-
08-07-2023 - |
Pergunta
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
Solução 2
Outras dicas
Just use MCRYPT_RIJNDAEL_128 with 256 bit key
Check this out: https://gist.github.com/RiANOl/1077723
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow