Skip to content

Instantly share code, notes, and snippets.

@paulspringett
Created September 27, 2010 13:11
Show Gist options
  • Save paulspringett/598988 to your computer and use it in GitHub Desktop.
Save paulspringett/598988 to your computer and use it in GitHub Desktop.
SHA1 HexDigest code
require 'digest/sha1'
sha1 = Digest::SHA1.hexdigest('something secret')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment