digest_length() public

Returns the output size of the digest, i.e. the length in bytes of the final message digest result.

Example

digest = OpenSSL::Digest::SHA1.new
puts digest.digest_length # => 20
Show source
Register or log in to add new notes.