HMAC Hash Generator
Compute cryptographic HMAC hashes client-side with SHA-1, SHA-256, and SHA-512.
100% client-side: your files never leave your browser
Computed HMAC Signature
Code Examples
JavaScript (Node.js)
// Node.js Crypto example
const crypto = require('crypto');
const hmac = crypto.createHmac('sha256', 'secret-key')
.update('Hello World')
.digest('hex');
console.log(hmac);Python
# Python hmac example import hmac import hashlib import base64 key = b'secret-key' msg = b'Hello World' h = hmac.new(key, msg, hashlib.sha256) result = h.hexdigest() print(result)
PHP
<?php
// PHP hash_hmac example
$key = 'secret-key';
$msg = 'Hello World';
$hmac = hash_hmac('sha256', $msg, $key, false);
echo $hmac;
?>