Ruby password hashing and validation.
Password hashing and validation using OpenSSL::PKCS5::pbkdf2_hmac for the hash and SecureRandom.base64 for the salt. Digest defaults to SHA1, but can be set to any digest (eg SHA256) supported by your systems OpenSSL lib.
Ruby Gem: https://rubygems.org/gems/hashpasswd
Documentation: http://rubydoc.info/gems/hashpasswd/0.3.0/frames