From WikiChip
$hmac Identifier - mIRC
< mirc‎ | identifiers
Revision as of 12:30, 1 February 2018 by Ouims (talk | contribs) (Created page with "{{mirc title|$hmac Identifier}}'''$hmac''' returns an HMAC (keyed-Hash Message Authentication Code) based on the supplied key == Synopsis == <pre>$hmac(text|&binvar|filename...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

$hmac returns an HMAC (keyed-Hash Message Authentication Code) based on the supplied key


Synopsis

$hmac(text|&binvar|filename, key, hash, N)

Paramters

  • text|&binvar|filename - the input
  • key - the key
  • N - the type of input, use N = 0 if input is plain text, N = 1 for &binvar, and 2 for filename
  • hash - optional, hashing algorithm, can be md5, sha1 (default), sha256, sha384, or sha512.

Properties

None

Example

None

Compatibility

Added: mIRC v7.42
Added on: 17 Jul 2015
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also

$hotp