Skip to content

Instantly share code, notes, and snippets.

@claudiolassala
Created July 15, 2011 19:20
Show Gist options
  • Save claudiolassala/1085347 to your computer and use it in GitHub Desktop.
Save claudiolassala/1085347 to your computer and use it in GitHub Desktop.
Encryption
md5_digest = Digest::MD5.hexdigest(real_password.upcase).downcase
sha1_digest = Digest::SHA1.hexdigest(md5_digest)
sha1_digest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment