|
ActiveTcl User Guide
|
|
|
[ Main table Of Contents | Tcllib Table Of Contents | Tcllib Index ]
sha1(n) 1.0.3 "sha1 hash"
sha1 - Perform sha1 hashing
package require Tcl 8.2
package require sha1 ?1.0.3?
This package provides commands to compute a SHA1 digests of
arbitrary messages.
- ::sha1::sha1 msg
- The command takes a message and returns the SHA1 digest of this
message as a hexadecimal string.
- ::sha1::hmac key text
- The command takes a key string and a text and returns the hmac
of the
|
% sha1::sha1 "hello world"
2aae6c35c94fcfb415dbe95f408b9ce91ee846ed
|
|
% sha1::hmac "our little secret" "hello world"
a7ed9d62819b9788e22171d9108a00c370104526
|
hashing , security , sha1