require 'rubygems/digest/sha2.rb' module Crypt def self.digest(input) Digest::SHA2::digest(input.to_s) end def self.hexdigest(input) Digest::SHA2::hexdigest(input.to_s) end end