These three magic words: "hassecurepassword"
I'm on chapter 6 of Michael Hartl's Rails tutorial and I am amazed at how easy it is to implement password encryption in rails!
Of course, the code implementation can be found here:
bcrypt uses the blowfish encryption algorithm, a symmetric key algorithm.
Heres more info on it: