Note: I am a student and I need this in a project of my own
I've seen here a way of encrypting data in php
My question is: should I store encrypted password into the database and decrypt it once someone logs-in and check if they are alike?
Also, should I use some other security layer on database to ensure that the data is safe? Some MySql self encryption or something like that?
I need a basic encryption that could do this. I know there are several threads about this, but my question is how to do this and if it would be useful to secure the data in the database as well (triggers, functions, etc) or not.