Endpoint
POST https://yas.sh/api/v1/tools/hash-calculator
Request Header
Content-Type: application/json
cURL
curl -X POST "https://yas.sh/api/v1/tools/hash-calculator" \
-H "Content-Type: application/json" \
-d '{"input":"hello","algo":"md5"}'JavaScript
const res = await fetch("https://yas.sh/api/v1/tools/hash-calculator", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"input": "hello",
"algo": "md5"
}),
});
const data = await res.json();Python
import requests
r = requests.post("https://yas.sh/api/v1/tools/hash-calculator", json={"input":"hello","algo":"md5"})
data = r.json()Success response
{ "slug": "hash-calculator", "algo": "md5", "result": "5d41402abc4b2a76b9719d911017c592" }Cryptographic digest of a string.