Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

class method

Digest::Class.digest

(::string) -> ::String
Digest::Class.digest(string, *parameters) → hash_string

Returns the hash value of a given string. This is equivalent to Digest::Class.new(*parameters).digest(string), where extra parameters, if any, are passed through to the constructor and the string is passed to digest().

See also .bubblebabble .file .base64digest .hexdigest also in 4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0