hash

Compute one or more cryptographic digests (MD5, SHA-1...

Compute one or more cryptographic digests (MD5, SHA-1, SHA-2 family, SHA-3 family, BLAKE2) of a string or hex/base64-encoded byte buffer. Returns hex or base64-encoded digests.

post/api/hash/compute

Request

  • Base URL: https://2s.io
  • URL: https://2s.io/api/hash/compute
  • Auth: API key in header PAYMENT-SIGNATURE

Query parameters

trial1

Try before you buy. Set to 1 for one free real call per endpoint per hour — no wallet or payment needed — to verify the endpoint before paying. Equivalent to sending the "X-2s-Trial: 1" request header. Listed only on operations that offer a trial; the others always answer 402.

Request body

inputstring required

Input.

algorithmsstring[]

Algorithms.

algorithm'md5' | 'sha1' | 'sha224' | 'sha256' | 'sha384' | 'sha512' | 'sha3-224' | 'sha3-256' | 'sha3-384' | 'sha3-512' | 'blake2b512' | 'blake2s256'

Algorithm.

inputEncoding'utf8' | 'hex' | 'base64'

Input encoding.

outputEncoding'hex' | 'base64'

Output encoding.

Response

(unresolved $ref)

Changes

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