The scrypt key derivation function is designed to be far more secure against hardware brute-force attacks than alternative functions such as PBKDF2 or bcrypt.
Patrick Hogan
gem "scrypt", "~> 1.1.0"