GET /v1/aes-decryptAES-GCM decrypt
Security Utils lf-security-utils
Turns scrambled text back into the original message, but only if you have the same secret key that locked it. Uses AES-256-GCM; needs the same key, IV, and optional AAD. Accepts hex or base64 ciphertext.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
ciphertext | string | Yes | Ciphertext (hex or base64) |
key | string | Yes | AES-256 key as 64-char hex |
iv | string | Yes | IV as 24-char hex |
aad | string | No | Additional Authenticated Data |
Response Schema
success (boolean): Operation success
algorithm (string): AES-256-GCM
plaintext (string): Decrypted text
plaintext_length (integer): Length in bytes
cURL Example
curl 'https://lf-security-utils.laminarforge.dev/v1/aes-decrypt?ciphertext=<ciphertext>&key=<key>&iv=<iv>' -H 'Authorization: Bearer lf_YourApiKey'
Python Example
import requests
url = 'https://lf-security-utils.laminarforge.dev/v1/aes-decrypt'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'ciphertext': '<ciphertext>', 'key': '<key>', 'iv': '<iv>'}
response = requests.get(url, headers=headers, params=params)
print(response.json())