Did you know? DZone has great portals for Python, Cloud, NoSQL, and HTML5!
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 5885 posts at DZone. View Full User Profile

SHA1 Encryption In Ruby

04.08.2005
Email
Views: 36039
  • submit to reddit
        
require 'digest/sha1'
sha1 = Digest::SHA1.hexdigest('something secret')