class String
Public Instance Methods
crc32()
click to toggle source
Returns the CRC32 checksum (in hexadecimal format) of the String
.
@return [String]
# File lib/gorge/string.rb, line 6 def crc32 Digest::CRC32.hexdigest(self) end
md5()
click to toggle source
Returns the MD5 hash (in hexadecimal format) of the String
.
@return [String]
# File lib/gorge/string.rb, line 13 def md5 Digest::MD5.hexdigest(self) end
sha1()
click to toggle source
Returns the SHA1 hash (in hexadecimal format) of the String
.
@return [String]
# File lib/gorge/string.rb, line 20 def sha1 Digest::SHA1.hexdigest(self) end
sha256()
click to toggle source
Returns the SHA256 hash (in hexadecimal format) of the String
.
@return [String]
# File lib/gorge/string.rb, line 27 def sha256 Digest::SHA256.hexdigest(self) end