Hey, at my job, I work on so many systems, and I have so many usernames and passwords, that I have to keep them all in a password protected spreadsheet. I would like to write a php app that I could put on my site where I could store all this information securely, so I have them available to me wherever I'm at.

Problem is, I don't know how to retrieve a hashed password. I don't think you can. So the question is, how can I make a database of usernames and passwords, with the passwords encrypted, which I can call upon to give me the passwords every now and then?
Thanks.

You can use PHP and MySQL...


MySQL has a few methods for encryption/decription. You would require a website, with PHP and MySQL installed on it.

Encrypting with MySQL ==> http://dev.mysql.com/doc/refman/5.0/en/encryption-functions.html

Using PHP with a MySQL database ==> http://www.freewebmasterhelp.com/tutorials/phpmysql


I don't know what sort of programming experience you have with PHP and MySQL.. but that would be one of the better methods to use.

You will have difficulty retrieving and de-hashing a password. Hashes aren't designed to be retrieved.

What you can do is rehash the input and see if they match.

You can use PHP and MySQL...


MySQL has a few methods for encryption/decription. You would require a website, with PHP and MySQL installed on it.

Encrypting with MySQL ==> http://dev.mysql.com/doc/refman/5.0/en/encryption-functions.html

Using PHP with a MySQL database ==> http://www.freewebmasterhelp.com/tutorials/phpmysql


I don't know what sort of programming experience you have with PHP and MySQL.. but that would be one of the better methods to use.

Thanks. Yes, I was planning on using php and mysql. I have enough experience I can do it, but using md5() won't be able to be unhashed. So I need to figure out a secure way to store the passwords, but that will enable me retrieve them when I want.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.