Hashing & Security Endpoints
Hash Generator
Generate hash digests (SHA-256, SHA-1, MD5).
POST /api/v1/hash
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
input | string | Yes | String to hash |
algorithm | string | Yes | "sha256", "sha1", or "md5" |
Example
curl -X POST https://www.toolbox-kit.com/api/v1/hash \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"input": "Hello, World!", "algorithm": "sha256"}'
{ "result": "dffd6021bb2bd5b0af676290809ec3a5...", "algorithm": "sha256" }
HMAC Generator
Generate HMAC signatures (SHA-256, SHA-1, SHA-384, SHA-512).
POST /api/v1/hmac
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
message | string | Yes | Message to sign |
secret | string | Yes | Secret key |
algorithm | string | No | "sha256", "sha1", "sha384", or "sha512" (default sha256) |
Example
curl -X POST https://www.toolbox-kit.com/api/v1/hmac \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"message": "Hello", "secret": "my-secret", "algorithm": "sha256"}'
{ "result": "a1b2c3d4e5f6...", "algorithm": "sha256" }
Password Generator
Generate cryptographically secure passwords.
POST /api/v1/password-generate
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
length | number | No | Password length (4-128, default 16) |
count | number | No | Number of passwords (1-50, default 1) |
lowercase | boolean | No | Include lowercase (default true) |
uppercase | boolean | No | Include uppercase (default true) |
numbers | boolean | No | Include numbers (default true) |
symbols | boolean | No | Include symbols (default true) |
Example
curl -X POST https://www.toolbox-kit.com/api/v1/password-generate \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"length": 24, "count": 5, "symbols": true}'
{ "result": ["x@K9m#Lp2$vR...", "..."], "length": 24, "count": 5 }