GET /v1/entropy-checkEntropy / randomness statistical check
Security Utils lf-security-utils
Measures how random a piece of data looks. Entropy / randomness statistical check
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
data | string | Yes | Data to analyze |
Response Schema
entropy (number): Shannon entropy per byte
normalized_entropy (number): 0-1 normalized
chi_square_p_value (number): Randomness p-value
assessment (string): random, weak, non-random, or short
cURL Example
curl 'https://lf-security-utils.laminarforge.dev/v1/entropy-check?data=<data>' -H 'Authorization: Bearer lf_YourApiKey'
Python Example
import requests
url = 'https://lf-security-utils.laminarforge.dev/v1/entropy-check'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'data': '<data>'}
response = requests.get(url, headers=headers, params=params)
print(response.json())