Hash Generator
Hitung hash MD5, SHA-1, SHA-256, SHA-384, atau SHA-512 dari teks apa pun.
POST /api/v1/hash- Versi API
- v1
- Skema output
- 1
Path endpoint selalu /v1. Angka skema di bawah menandai bentuk output tool ini dan berubah terpisah.
Bikin akun gratis →Parameter
| Parameter | Tipe | Wajib | Default |
|---|---|---|---|
| input | text | ya | — |
| algo | md5 | sha1 | sha256 | sha384 | sha512 | tidak | sha256 |
| encoding | hex | base64 | tidak | hex |
Request
curl -X POST https://sinikoding.dev/api/v1/hash \ -H 'content-type: application/json' \ -H 'x-api-key: tk_live_…' \ -d '{"input":"…","algo":"sha256","encoding":"hex"}'
Mengembalikan
"output": { "kind": "text", "value": "…" }
Memanggil endpoint sandbox same-origin, bukan /api/v1. Tanpa key, dibatasi 15 request per menit.
Request
curl -X POST https://sinikoding.dev/api/v1/hash \ -H 'content-type: application/json' \ -H 'x-api-key: tk_live_…' \ -d '{"input":"","algo":"sha256","encoding":"hex"}'
Response
Kirim request untuk melihat response-nya.