GET /hash
Generate a cryptographic hash of valfri input string med hjälp av din choice of algorithm. Stöder MD5, SHA-1, SHA-256, SHA-384, and SHA-512. Användbart för checksum verification, data integrity checks, and utveckling testing. Beräknas lokalt utan externa beroenden.
input
obligatorisk
String to hash
algoritm
valfri
standard: sha256
Algorithm: md5, sha1, sha256, sha384, sha512
| Namn | Obligatorisk | Standard | Beskrivning |
|---|---|---|---|
input |
Ja | - | String to hash |
algoritm |
Nej | sha256 | Algorithm: md5, sha1, sha256, sha384, sha512 |
curl "https://nordapi.ee/api/v1/hash?input=hello+world&algorithm=sha256"
curl "https://nordapi.ee/api/v1/hash?input=hello+world&algorithm=sha256"
curl "https://nordapi.ee/api/v1/hash?input=test123&algorithm=md5"
curl "https://nordapi.ee/api/v1/hash?input=my+secret+data&algorithm=sha512"
{
"data": {
"algorithm": "sha256",
"hash": "b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9",
"input": "hello world",
"length": 64
},
"success": true
}