Method: String#sha1

Defined in:
lib/gorge/string.rb

#sha1String

Returns the SHA1 hash (in hexadecimal format) of the String.

Returns:



20
21
22
# File 'lib/gorge/string.rb', line 20

def sha1
  Digest::SHA1.hexdigest(self)
end