NAME

md5 -
md5 hash

SYNOPSIS

package require Tcl 8.2
package require md5 1.4.3
::md5::md5 msg
::md5::hmac key text

DESCRIPTION

This package provides commands to compute a MD5 digests of arbitrary messages.

COMMANDS

::md5::md5 msg
The command takes a message and returns the MD5 digest of this message as a hexadecimal string.
::md5::hmac key text
The command takes a key string and a text and returns the hmac of the text under the chosen key as a hexadecimal string.

EXAMPLES

% md5::md5 "hello world"
5eb63bbbe01eeed093cb22bb8f5acdc3

% md5::hmac "our little secret" "hello world"
61a922114c8aaf5050098be6d3a7daf0

KEYWORDS

md5, hashing, security