I'm currently a student and I'm studying PHP, I'm trying to make a simple encrypt/decrypt of data in PHP. I made some online research and some of them were quite confusing(at least for me).
Here's what I'm trying to do:
I have a table consisting of these fields (UserID,Fname,Lname,Email,Password)
What I want to have is have the all fields encrypted and then be decrypted(Is it possible to use
sha256 for encryption/decryption, if not any encryption algorithm)
Another thing I want to learn is how to create a one way
hash(sha256) combined with a good "salt".
(Basically I just want to have a simple implementation of encryption/decryption,
Sir/Ma'am, your answers would be of great help and be very much appreciated. Thank you++