Class: Portunus::Hasher

Inherits:
Object
  • Object
show all
Defined in:
lib/portunus/hasher.rb

Class Method Summary collapse

Class Method Details

.for(input) ⇒ Object



3
4
5
6
7
# File 'lib/portunus/hasher.rb', line 3

def self.for(input)
  return nil if input.blank?

  Digest::SHA2.new(512).hexdigest(input)
end