Navigation
POST text

hash

1 credit

Hash text with the chosen algorithm and return the hex digest.

Endpoint

POST /api/v1/tools/text/hash

Body Parameters

text string required
algorithm string optional default: "sha256"
Options: md5 sha1 sha256 sha512

Example

input Request
{
    "text": "Hello, World!",
    "algorithm": "sha256"
}
output Response
{
    "hash": "dffd6021bb2bd5b0af676290809ec3a53191dd81c7f70a4b28688a362182986f",
    "algorithm": "sha256"
}

Response Format

HTTP/1.1 200 OK SUCCESS
{
  "success": true,
  "data": {
    "hash": "dffd6021bb2bd5b0af676290809ec3a53191dd81c7f70a4b28688a362182986f",
    "algorithm": "sha256"
},
  "meta": {
    "tool": "hash",
    "credits_consumed": 1
  }
}
HTTP/1.1 422 Unprocessable Entity ERROR
{
  "success": false,
  "data": null,
  "error": {
    "code": "validation_error",
    "message": "The given data was invalid."
  }
}

Sign in to try this tool directly from the docs.

Code Examples
Request Example
lightbulb Developer Tip

Credits are deducted before execution. If the upstream tool fails, credits are automatically refunded to your account.