GET /v1/password-hashPassword hash & verify
Security Utils lf-security-utils
Stores a password safely by scrambling it with salt, or checks a typed password against the stored one. Hashes a password with salt using iterated SHA-256, or verifies a password against a stored hash+salt.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
password | string | Yes | Password to hash/verify |
mode | string | No | hash or verify |
hash | string | No | Stored hash (verify mode) |
salt | string | No | Salt (verify mode) |
iterations | integer | No | Iteration count |
Response Schema
success (boolean): Operation success
hash (string): Computed hash (hex)
salt (string): Generated/used salt
iterations (integer): Iteration count
valid (boolean): Verify result
cURL Example
curl 'https://lf-security-utils.laminarforge.dev/v1/password-hash?password=secret123' -H 'Authorization: Bearer lf_YourApiKey'
Python Example
import requests
url = 'https://lf-security-utils.laminarforge.dev/v1/password-hash'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'password': 'secret123'}
response = requests.get(url, headers=headers, params=params)
print(response.json())