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

digest = OpenSSL::Digest::SHA1.new
puts digest.block_length # => 64
doc_ruby_on_rails
2015-04-25 01:24:09
Comments
Leave a Comment

Please login to continue.