DZone 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

Snippets has posted 5883 posts at DZone. View Full User Profile

SHA1 Encryption In Ruby

04.08.2005
| 40789 views |
  • submit to reddit
        
require 'digest/sha1'
sha1 = Digest::SHA1.hexdigest('something secret')