SHA1 encryption in Ruby
1 require 'digest/sha1' 2 sha1 = Digest::SHA1.hexdigest('something secret')
DZone Snippets > hmans > sha1
12878 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Hendrik Mans http://www.mans.de
1 require 'digest/sha1' 2 sha1 = Digest::SHA1.hexdigest('something secret')