Skip to content

Instantly share code, notes, and snippets.

@rubiojr
Created July 21, 2009 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rubiojr/151281 to your computer and use it in GitHub Desktop.
Save rubiojr/151281 to your computer and use it in GitHub Desktop.
require 'digest/sha1'
require 'base64'
d = Digest::SHA1.new
hash = Base64.encode64(d.digest('something secret'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment