TU-Berlin → Inst. f. Mathematik → Algebra und Zahlentheorie → KASH → Documentation → Reference Manual
KASH3 Reference Manual
search    

Function

Hmac ( string s, string password ) -> string hmacsum

Optional Arguments

Digeststring (Default: SHA1) Specifies the digest algorithm to use.

Description

Return the keyed hash sum of `s' under a digest algorithm `Digest'.
Note: You probably want to wrap around an encoding function since `Hmac' will return raw string data.

Examples

Hex(Hmac("sometest","password")); Hex(Hmac("sometest","diffpass"))
Hex(Hmac("hashme","withme",rec(Digest:="RIPEMD160")));
Built: Mon Nov 14 21:12:39 UTC 2005 on mack
The KANT Group