TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Compute an HMAC of UTF-8 text

GEThttps://api.testingapis.com/api/utils/hmacSign in to see this endpoint's URL

Parameters 3

NameTypeDescription
textquery · stringMessage to sign. Default empty. Default: "".
keyquery · stringSecret key. Default apibee-secret. Default: "apibee-secret".
algorithmquery · stringmd5, sha1, sha256 (default), sha384 or sha512. Case-insensitive. Default: "sha256".

Responses

200
Success.
400
Unknown algorithm.

Example

Request
curl -X GET "https://api.testingapis.com/api/utils/hmac?text=hello&key=secret" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{
  "input": "hello",
  "key": "secret",
  "algorithm": "sha256",
  "hex": "88aab3ede8d3adf94d26ab90d3bafd4a2083070c3bcce9c014ee04a443847c0b",
  "base64": "iKqz7ejTrflNJquQ07r9SiCDBww7zOnAFO4EpEOEfAs="
}

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.