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.
Oracle Password Encryption
Moderator: General Moderators
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: Oracle Password Encryption
Use a hash funciton like sha256.
Either Google around here for feyd's PHP implementation or use the following if available:
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
No, he can't. He means the login credentials for the database backend, not the web app logins.Use a hash funciton like sha256.
Read this carefully: http://shiflett.org/articles/shared-hosting (essential snippet near the bottom), and really be careful how you implement it.