About this endpoint
What it does
Computes a hash for the supplied string using the selected algorithm and returns the resulting hash alongside the original input and the algorithm used.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| text | String | Yes | The string to hash. |
| algorithm | ENUM | No | Hash algorithm to use. Allowed values: md5, sha1, sha256, sha512. Default: sha256. |
Response
Returns a JSON object with hash, input, and algorithm string fields.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| hash | String | No | The computed hash value. |
| input | String | No | The input string that was hashed. |
| algorithm | String | No | The algorithm used to produce the hash. |