Skip to content

Instantly share code, notes, and snippets.

@lfelia
Created May 4, 2018 17:06
Show Gist options
  • Save lfelia/67587484c810b7133492ab98e012b5bd to your computer and use it in GitHub Desktop.
Save lfelia/67587484c810b7133492ab98e012b5bd to your computer and use it in GitHub Desktop.
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