INNER CODE UNIT · JavaScript

hmac

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

function hmac(key, data) {
	return HMAC.encode(SHA1.encode(key), data);
}


// console.log(SHA1.encode('testing'));
console.log(hmac('admin', 'test'));
// console.log(String.fromCharCode(12 ^ 0x5C));

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…