Created
May 4, 2018 17:06
-
-
Save lfelia/67587484c810b7133492ab98e012b5bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bcrypt' | |
password = "pain-in-the-ass-word" | |
psalt = BCrypt::Engine.generate_salt | |
phash = BCrypt::Engine.hash_secret(password, psalt) | |
puts psalt | |
puts phash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment