<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://script.quakenet.org/wiki/index.php?action=history&amp;feed=atom&amp;title=%24hmac</id>
	<title>$hmac - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://script.quakenet.org/wiki/index.php?action=history&amp;feed=atom&amp;title=%24hmac"/>
	<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$hmac&amp;action=history"/>
	<updated>2026-05-15T02:10:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=$hmac&amp;diff=6162&amp;oldid=prev</id>
		<title>NaNg: new $hmac identifier.</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$hmac&amp;diff=6162&amp;oldid=prev"/>
		<updated>2015-07-18T13:13:29Z</updated>

		<summary type="html">&lt;p&gt;new $hmac identifier.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Returns HMAC hash value for the specified data using the given key, where hash can be md5, sha1 (default), sha256, sha384 or sha512 and N = 0 for plain text (default), 1 for &amp;amp;binvar, 2 for filename.&lt;br /&gt;
 $hmac(text|&amp;amp;binvar|filename,key,hash,[N])&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
 $hmac(text string, hmackey, sha256)&lt;br /&gt;
Returns the HMAC-SHA-256 hash value of &amp;#039;&amp;#039;text string&amp;#039;&amp;#039; with key &amp;#039;&amp;#039;hmackey&amp;#039;&amp;#039; (19df3338494ee69e5a1648f9456677355878af1ffed0f74a6fc0effee8551089)&lt;br /&gt;
&lt;br /&gt;
 //bset -t &amp;amp;bvar 1 text string | echo -ag $hmac(&amp;amp;bvar,hmackey,sha256,1)&lt;br /&gt;
Echoes the same as the last value, this time using a binary variable.&lt;br /&gt;
&lt;br /&gt;
 $hmac(mirc.ini,hmackey,sha1,2)&lt;br /&gt;
Returns the HMAC-SHA-1 hash value of the file &amp;#039;&amp;#039;mirc.ini&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [[$md5]]&lt;br /&gt;
* [[$sha1]]&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Hash-based_message_authentication_code HMAC on wikipedia]&lt;/div&gt;</summary>
		<author><name>NaNg</name></author>
	</entry>
</feed>