Module: Crypt
- Defined in:
- lib/appswarm/crypt.rb
Class Method Summary collapse
Class Method Details
.digest(input) ⇒ Object
4 5 6 |
# File 'lib/appswarm/crypt.rb', line 4 def self.digest(input) Digest::SHA2::digest(input.to_s) end |
.hexdigest(input) ⇒ Object
7 8 9 |
# File 'lib/appswarm/crypt.rb', line 7 def self.hexdigest(input) Digest::SHA2::hexdigest(input.to_s) end |