Page 1 of 1

Oracle Password Encryption

Posted: Mon Mar 10, 2008 10:59 am
by tommy1987
In a PHP file containing the login credentials for the database, this should not be hard coded, how should I go about storing this information since I want it to be safe enough that the source is open and viewable by anyone.

Thanks.

Re: Oracle Password Encryption

Posted: Mon Mar 10, 2008 2:02 pm
by alex.barylski
Use a hash funciton like sha256.

Either Google around here for feyd's PHP implementation or use the following if available:

Code: Select all

hash('sha256', 'password');

Re: Oracle Password Encryption

Posted: Tue Mar 11, 2008 4:11 am
by Mordred
Use a hash funciton like sha256.
No, he can't. He means the login credentials for the database backend, not the web app logins.
Read this carefully: http://shiflett.org/articles/shared-hosting (essential snippet near the bottom), and really be careful how you implement it.