#/tools/text/hash
Generates a cryptographic hash from a given string using supported hashing algorithms.
#Request
GET https://api.synz.xyz/tools/text/hash
#Parameters
| Name |
Type |
Description |
| text |
string |
Required. The string to hash. |
| algorithm |
string |
Optional. Hashing algorithm to use. Supported: sha256, sha512, sha1, md5. Defaults to sha256. |
#Response
{
"input": "hello world",
"algorithm": "sha256",
"hash": "b94d27b9934d3e08a52e52d7da7dabfade4f..."
}
#Fields
| Field |
Type |
Description |
| input |
string |
The original input string |
| algorithm |
string |
The hashing algorithm used |
| hash |
string |
The generated hexadecimal hash output |
#Examples
curl "https://api.synz.xyz/tools/text/hash?text=hello%20world"
curl "https://api.synz.xyz/tools/text/hash?text=hello%20world&algorithm=sha512"
#Errors
| Status |
Description |
| 400 |
Missing text query parameter |
| 400 |
Unsupported algorithm. Must be one of: sha256, sha512, sha1, md5 |