Security & Crypto API
Compute SHA-256 and HMAC-SHA256 hashes, and generate SSH key fingerprints for provisioning, auditing, and secure workflows.
Included endpoints
POST /api/v1/hash/sha256– SHA-256 hash of textPOST /api/v1/hash/hmac-sha256– HMAC-SHA256 with a secretPOST /api/v1/ssh/key/fingerprint– SSH key MD5 & SHA-256 fingerprints
Example: HMAC-SHA256
curl --request POST \
--url https://hefftools.dev/api/v1/hash/hmac-sha256 \
--header 'Content-Type: application/json' \
--header 'X-RapidAPI-Key: <your-rapidapi-key>' \
--data '{
"message": "data to sign",
"secret": "mysecret"
}'
Response (example):
{
"algorithm": "hmac-sha256",
"hex_digest": "ae1b3c..."
}
Use cases
- Signing payloads for webhooks or internal APIs
- Verifying SSH keys before adding them to authorized_keys
- Generating fingerprints for inventory and auditing systems