method

digest_length

ruby latest stable - Class: OpenSSL::Digest
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