GET /v1/sha256Compute SHA-256 hash
Security Utils lf-security-utils
Makes a fingerprint code of a piece of text. Computes the SHA-256 hash of an input string and returns the hex digest.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | Yes | Text to hash |
Response Schema
input (string): Original input
sha256 (string): SHA-256 hex digest
input_length (integer): Input length
cURL Example
curl 'https://lf-security-utils.laminarforge.dev/v1/sha256?input=hello' -H 'Authorization: Bearer lf_YourApiKey'
Python Example
import requests
url = 'https://lf-security-utils.laminarforge.dev/v1/sha256'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'input': 'hello'}
response = requests.get(url, headers=headers, params=params)
print(response.json())