Table of Contents

_________________________________________________________________

Name

::md5::md5 - Perform md5 hashing

Synopsis

package require Tcl 8.2

package require md5 ?1.4.1?

::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


Table of Contents