Docs/Security Utils/GET /v1/password-hash

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

ParameterTypeRequiredDescription
passwordstringYesPassword to hash/verify
modestringNohash or verify
hashstringNoStored hash (verify mode)
saltstringNoSalt (verify mode)
iterationsintegerNoIteration 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())