'\"
'\" Generated from ../tcllib/modules/sha1/sha1.man by mpexpand with fmt.nroff
'\"
.so man.macros
.TH "sha1" n 1.0.2 sha1 "sha1 hash"
.BS
.SH NAME
sha1 \- Perform sha1 hashing
.SH "SYNOPSIS"
package require \fBTcl 8.2\fR
.sp
package require \fBsha1 ?1.0.2?\fR
.sp
\fB::sha1::sha1\fR \fImsg\fR\fR
.sp
\fB::sha1::hmac\fR \fIkey\fR \fItext\fR\fR
.sp
.BE
.SH "DESCRIPTION"
.PP
This package provides commands to compute a SHA1 digests of arbitrary
messages.
.SH "COMMANDS"
.TP
\fB::sha1::sha1\fR \fImsg\fR\fR
The command takes a message and returns the SHA1 digest of this message
as a hexadecimal string.
.TP
\fB::sha1::hmac\fR \fIkey\fR \fItext\fR\fR
The command takes a key string and a text and returns the hmac of the
.SH "EXAMPLES"
.PP
.nf
% sha1::sha1 "hello world"
2aae6c35c94fcfb415dbe95f408b9ce91ee846ed
.fi
.PP
.nf
% sha1::hmac "our little secret" "hello world"
a7ed9d62819b9788e22171d9108a00c370104526
.fi
.SH "KEYWORDS"
sha1, hashing, security
