class

Beryl::Crypto::Compatibility::MessageDigest5

Inherits Beryl::Crypto::V1::BlockHashFunction < Digest < Reference < Object

MD5 (RFC 1321): a 128-bit digest.

WARNING: MD5 is broken for collision resistance (RFC 6151). It is here only to read and speak formats that require it (PostgreSQL md5 authentication, advisory lock ids and cache keys that must stay bit-exact). Use Beryl::Crypto.digest for anything new.

Beryl::Crypto::Compatibility::MD5.hexdigest("abc")
# => "900150983cd24fb0d6963f7d28e17f72"

Constants

BLOCK_SIZE = 64

The number of bytes the compression function consumes per step.

DIGEST_SIZE = 16

The number of bytes in the digest.

Instance methods

block_size

Returns the number of bytes the compression function consumes per step.

Source
digest_size

Returns the digest output size in bytes.

Source