All Tools
Tools/HMAC & SHA Hashes
#️⃣
Cryptography & KeysAvailable
HMAC & SHA Hashes
Compute HMAC-SHA256, HMAC-SHA512, SHA-1, SHA-256, SHA-512 of text or hex input using the browser Web Crypto API.
Follows FIPS 180-4 · RFC 2104 HMACSHA-1/256/512, HMAC-SHA-256/512·verified Oct 2026· double-checked Oct 2026— RFC 4231 test cases 1–7 and FIPS 180-4 examples; 2,000 random cases match pycryptodome
Use test data only. All calculations run locally in your browser — PayProbe never sees, transmits, or stores your PAN, CVV, keys, PINs, or cryptographic inputs. How we handle data →
</> Code Implementation
# HMAC-SHA256 computation using Python standard library
import hmac, hashlib
def hmac_sha256(key: bytes, message: bytes) -> str:
return hmac.new(key, message, hashlib.sha256).hexdigest().upper()
def hmac_sha512(key: bytes, message: bytes) -> str:
return hmac.new(key, message, hashlib.sha512).hexdigest().upper()
# Example
key = b"secret-key"
message = b"Hello, PayProbe!"
print(f"HMAC-SHA256: {hmac_sha256(key, message)}")
print(f"HMAC-SHA512: {hmac_sha512(key, message)}")
print(f"SHA-256: {hashlib.sha256(message).hexdigest().upper()}")
# In the tool: key (hex) 7365637265742D6B6579 = "secret-key", message as Text (UTF-8)
# HMAC-SHA256: 31B3776E49A5F567E9EC6D1EDEA491F9B70995680A30361D6DE82872C733D127
# SHA-256: 02597249E6B54B9AD4E971A401AFCFBD99406509B86686A487F0FA68754005D8
Something wrong or missing? Report a problem— we check reports against the specs and fix them.