Method: String#to_sha1

Defined in:
lib/pentex/core.rb

#to_sha1(format = :hex) ⇒ Object



39
40
41
# File 'lib/pentex/core.rb', line 39

def to_sha1(format = :hex)
  Digest::SHA1.hexdigest(self)
end