Navigation
POST file

checksum

1 credit

Calculate a cryptographic checksum of base64-encoded file content.

Endpoint

POST /api/v1/tools/file/checksum

Body Parameters

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

Example

input Request
{
    "algorithm": "sha256",
    "file_base64": "SGVsbG8sIFdvcmxkIQ=="
}
output Response
{
    "checksum": "dffd6021bb2bd5b0af676290809ec3a53191dd81c7f70a4b28688a362182986f",
    "algorithm": "sha256",
    "size_bytes": 13
}

Response Format

HTTP/1.1 200 OK SUCCESS
{
  "success": true,
  "data": {
    "checksum": "dffd6021bb2bd5b0af676290809ec3a53191dd81c7f70a4b28688a362182986f",
    "algorithm": "sha256",
    "size_bytes": 13
},
  "meta": {
    "tool": "checksum",
    "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.