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

Hash UTF-8 text

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

Parameters 2

NameTypeDescription
textquery · stringText to hash. Default empty. Default: "".
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/hash?text=hello&algorithm=sha256" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{
  "input": "hello",
  "algorithm": "sha256",
  "hex": "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824",
  "base64": "LPJNul+wow4m6DsqxbninhsWHlwfp0JecwQzYpOLmCQ="
}

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.