INNER CODE UNIT · JavaScript

temp

norkator/cryptography · src/cryptography/other/hmac/IPM.js:115

			var temp = SHA1.cvt_hex(H0) + SHA1.cvt_hex(H1) + SHA1.cvt_hex(H2) + SHA1.cvt_hex(H3) + SHA1.cvt_hex(H4);
			return temp.toLowerCase();
		}
	};


/**
 * @module HMAC
 */
var HMAC =
	{
		encode: function(key, data)
		{
			function hexToBin(hStr)
			{
				var bStr = "";
				for(i = 0; i < hStr.length; i += 2)
					bStr += String.fromCharCode((parseInt(hStr.charAt(i), 16) << 4) + parseInt(hStr.charAt(i + 1), 16));

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…