awis.hamc.au3

License

Author

Description

Generate a keyed hash value using the HMAC method (Keyed-Hashing for Message Authentication)

Summary
awis.hamc.au3
Functions
sha1Calculate the sha1 hash of a string
md5Calculate the md5 hash of a string
hmacGenerate a keyed hash value using the HMAC method

Functions

sha1

Func sha1($message)

Calculate the sha1 hash of a string

Parameters

$messageString

Returns

the sha1 hash as a string.

md5

Func md5($message)

Calculate the md5 hash of a string

Parameters

$messageString

Returns

the hash as a 32-character hexadecimal number.

hmac

Func hmac($key,  
$message,  
$hash =  "md5")

Generate a keyed hash value using the HMAC method

Parameters

$keyString Shared secret key used for generating the HMAC variant of the message digest.
$messageString Message to be hashed.
$hashthe desired HMAC crypto algorithm.  Default is md5
Func sha1($message)
Calculate the sha1 hash of a string
Func md5($message)
Calculate the md5 hash of a string
Func hmac($key,  
$message,  
$hash =  "md5")
Generate a keyed hash value using the HMAC method