I am trying to encrypt sensitive user data, such as private messages on my website with php, before entering the database. I did a bit of work on the Internet, and I found some important things to remember:
Never use mcrypt, it refuses programs.
AES is based on the Rijndael algorithm and has not yet changed.
AES was also recommended by the NSA and is used in encryption of US government data, but since the NSA recommends it, there is a chance that they can easily penetrate my user data.
Blowfish was also unbroken, but slow and less popular.
So, I decided to try first with AES-256 cbc. But I'm still not sure it is better not to consider Blowfish an option. Therefore, any recommendations are welcome.
And my main problem is how to encrypt data in php? I can't find a good guide on this in the php documentation. What is the correct way to implement it?
Any help is greatly appreciated.
source
share