Data

Hash a text or a file (md5, sha1, sha256, sha512)

Returns the hash of a text (JSON) or of a file (raw bytes, max 25 MB). Useful for checksums and deduplication.

Costs 1 credit per call.

post/hash

Request

  • Base URL: https://api.cofferdock.com
  • URL: https://api.cofferdock.com/hash
  • Auth: API key in header x-api-key

Request body

textstring required

The text to hash.

algorithm'md5' | 'sha1' | 'sha256' | 'sha512'

Hash algorithm: "md5", "sha1", "sha256" (default) or "sha512".

encoding'hex' | 'base64'

How to write the result: "hex" (default) or "base64".

Response

Result.

successboolean
hashstring
algorithmstring

Changes

No recorded changes to this operation across all 1 revision of this API.