class Portunus::Hasher
Public Class Methods
for(input)
click to toggle source
# File lib/portunus/hasher.rb, line 3 def self.for(input) return nil if input.blank? Digest::SHA2.new(512).hexdigest(input) end
# File lib/portunus/hasher.rb, line 3 def self.for(input) return nil if input.blank? Digest::SHA2.new(512).hexdigest(input) end