HMAC

Calcula um código de autenticação com chave para integridade e origem.

Entrada: Texto (UTF-8) / Um arquivoResultado: Texto

Entrada de texto

Execute para ver o resultado

Exemplos

Example keys and passwords are public test material.

Reproduce GitHub's webhook signature, then break it with one newline — step 1

Check exact request-body bytes before blaming a webhook secret or algorithm.

Entrada

Hello, World!

Expected answer

757107ea0eb2509fc211221cce984b8a37570b6d7586c22c46f4379c8b043e17
Chave
{"option":"UTF8","string":"It's a Secret to Everybody"}
Função de hash
SHA256
Reproduce GitHub's webhook signature, then break it with one newline — step 2

Check exact request-body bytes before blaming a webhook secret or algorithm.

Entrada

Hello, World!

Expected answer

8fde2e970f9163923fb1cb61bb945626ff2b4091d87e622ee3ad600160592325
Chave
{"option":"UTF8","string":"It's a Secret to Everybody"}
Função de hash
SHA256
A release-manifest signature

Entrada

release=2.1.0
artifact=demo.tar.gz

Expected answer

ab2ff1656e921ea466d34f64e280a86ee8e512ea3e6a0fa09f6a751e6aa06b28
Chave
{"option":"UTF8","string":"public-webhook-demo-key"}
Função de hash
SHA256
A webhook-like deployment record

Entrada

{"event":"deploy","project":"demo","ready":true}

Expected answer

b77da7848994256468008cd0323e78a1c6090fe316bc1eeec4a332f7dc750bc1
Chave
{"option":"UTF8","string":"public-webhook-demo-key"}
Função de hash
SHA256
A Unicode name in a signed payload

Entrada

café

Expected answer

ef27c13811439814473f39cf8e9b8725044df9e5eec6e914707cbc103270dc17
Chave
{"option":"UTF8","string":"public-webhook-demo-key"}
Função de hash
SHA256
A signature-sensitive trailing newline

Entrada

Hello, World!

Expected answer

ef446f15a5ca27f9c98a4126272b81fed4674eb0daa0e4c3cb50575876f758c9
Chave
{"option":"UTF8","string":"public-webhook-demo-key"}
Função de hash
SHA256
An ASCII control message

Entrada

sensor=demo temperature=-12.5

Expected answer

af10b89f3fe3535319b0d7a7eded903ca3d8b61370d92a8c47283c0fe41aeca3
Chave
{"option":"UTF8","string":"public-webhook-demo-key"}
Função de hash
SHA256
Decimal key comma-delimited matches Latin1 key (fromDecimal Auto delimiter regression)

Entrada

Hello, World!

Expected answer

9b641a008211bb0464a10899d5b37a24ab08ffcf839f5e74d17d99f856530957
Chave
{"option":"Decimal","string":"65,65"}
Função de hash
SHA256
Decimal key space-delimited matches Latin1 key (fromDecimal Auto delimiter regression)

Entrada

Hello, World!

Expected answer

9b641a008211bb0464a10899d5b37a24ab08ffcf839f5e74d17d99f856530957
Chave
{"option":"Decimal","string":"65 65"}
Função de hash
SHA256
Latin1 key matches space-delimited Decimal key (fromDecimal Auto delimiter regression)

Entrada

Hello, World!

Expected answer

9b641a008211bb0464a10899d5b37a24ab08ffcf839f5e74d17d99f856530957
Chave
{"option":"Latin1","string":"AA"}
Função de hash
SHA256

Ferramentas relacionadas

Hashes

Referência da operação

Ver a documentação técnica original (English)