Setting up a password repository
July 12, 2005 5:55 AM
Subscribe
Let's say I wanted to create a simple web app to store my various usernames and passwords. The app and database would be hosted externally (by Dreamhost). I would use a secure connection for any HTTP stuff going back and forth, and I would encrypt all of the passwords before going into the db, and I can only extract and decrypt a password after entering a pass phrase that exists only in my brain. What would it take for someone else to get at my passwords?
Dreamhost just added Ruby on Rails support, so I thought this would be a good project to get my feet wet with it. Does Ruby have nice encryption modules ready to go? Would there be more secure options going with PHP or Perl?
[Alternatively, does anyone know of a web app like this? My searches turn up lots of junky-looking Windows programs.]
posted by patgas to computers & internet (9 comments total)
in practice, the easiest way to get anything is usually social engineering (in broad terms). so, for example, tricking you into entering your password at a fake page would be more likely than someone bothering to brute force your password (particularly since the same attack can be used against many, while cracking your password can be used only against you).
the easiest technical crack i can see to your system is hacking the server it's hosted on and then altering the code so that it grabs your (global) password (at the client dialogue) and reports it back to the server. that's quite interesting, in that it suggests that anyone with access to the server is in a position to know your passwords, so encrypting the passwords on the server, while certainly best practice, is giving you a false sense of security.
(i'm assuming you intend to do the decryption on the client, right?)
posted by andrew cooke at 6:11 AM on July 12, 2005