Password security | Sololearn: Learn to code for FREE!


Password security

I made a web page and I used PHP to connect to MySQL , my question is how can I hide the password or encrypt it because I think it is incorrect show the password in the code.

1/7/2017 7:00:31 PM

Eduardo Hernandez

3 Answers

New Answer


but you never show it in any page, you just recive it and compare it to database.


if you mean the DB Password, you should house it somewhere other than the www or public directory. Then include the connection data to your database scripts.


thanks for your answers!