Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Digest::Instance#digest_length

digest_obj.digest_length → integer

Returns the length of the hash value of the digest.

This method should be overridden by each implementation subclass. If not, digest_obj.digest().length() is returned.

See also #digest! #file #digest #finish also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0