Skip to content
instance method

OpenSSL::Digest#digest_length

() -> ::Integer
digest.digest_length → integer

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

Example

Example
digest = OpenSSL::Digest.new('SHA1')
puts digest.digest_length # => 20
See also #block_length #finish #<< #name also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0