Skip to content

Instantly share code, notes, and snippets.

@kelhusseiny
Created April 20, 2012 04:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kelhusseiny/2426058 to your computer and use it in GitHub Desktop.
Save kelhusseiny/2426058 to your computer and use it in GitHub Desktop.
salt = BCrypt::Engine.generate_salt
encrypted_password = BCrypt::Engine.hash_secret(password, salt)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment