Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Digest::MD5

Native Rust implementation built into the interpreter. Runtime: P5. See original documentation for the full Perl reference.

Functions

add

append data to context, return $self.

add_bits

add bit string to context.

addfile

read all data from filehandle, add to context.

b64digest

return base64 digest (22 chars, no padding), reset context.

clone

duplicate context, preserving class.

context

get mode: return ($block_count, $state[, $unprocessed]).

$ctx->context($block_count, $state[, $unprocessed]) — set mode: restore state.

digest

return binary digest (16 bytes), reset context.

hexdigest

return hex digest (32 chars), reset context.

md5

binary 16-byte digest.

md5_base64

22-char base64 digest (no padding).

md5_hex

32-char hex digest.

new

reset

clear accumulated data, return $self.