Exploring Rails 3.1 - ActiveModel::SecurePassword
bcardarella.com
bcardarella.com
Edit:
Actually, after minimal research, I see that salting the password is handled by the bcrypt ruby gem.
=> "$2a$10$khoJWZR3hVA8Qcm3lW6sp.BQGOFKGo2xHCeH2YfDcQVRltEGCJe0S"
>> [hash.salt, hash.checksum]
=> ["$2a$10$khoJWZR3hVA8Qcm3lW6sp.", "BQGOFKGo2xHCeH2YfDcQVRltEGCJe0S"]
This is really just some Rails sugar around bcrypt-ruby.
bcrypt has been considered a best practice for quite a while. it's been openbsd's default password hashing scheme since 1997, and used in a number of php projects like drupal, phpbb, and wordpress for many years.