I have a site developed in PHP. There are 2 classes (in 2 separate php files) that contain the gaddymin gmail user id and password (in plain text) and the database password (again in plain text). Although none of these classes are displayed in the browser (e.g. index.php). These files contain only php classes, and the html code and links to these plain text passwords are only objects of these classes. Recently, I began to wonder if it is safe enough enough? I tried my best (acting as a malicious person) to try to read the contents of the two specified php files, but could not do this. I'm not very good at developing secure code, so I'm not sure what my approach should be to make sure that these passwords are never exposed.Can anyone offer some advice on developing PHP code that may contain such sensitive information.
Mohit source
share