GET /api/v1/hash
Return the SHA digest of a text.
| Parameter | Type | Description |
|---|---|---|
alg | string | sha1, sha256 (default), sha384 or sha512 |
text | string | Text to hash (max 4096 chars) |
Request
curl "https://myselfapi.top/api/v1/hash?alg=sha256&text=hello"
Response
{
"alg": "sha256",
"hex": "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824"
}