Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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