block_length

digest.block_length â integer
Instance Public methods

Returns the block length of the digest algorithm, i.e. the length in bytes of an individual block. Most modern algorithms partition a message to be digested into a sequence of fix-sized blocks that are processed consecutively.

Example

1
2
digest = OpenSSL::Digest::SHA1.new
puts digest.block_length # => 64
doc_ruby_on_rails
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.