Comprehensive documentation for our encryption service
This API provides AES-256-CBC encryption and decryption services. All cryptographic operations are performed using the Web Crypto API in the browser, ensuring your data never leaves your device.
Important: The encryption key is hashed using SHA-256 before being used. You must use the same key for decryption that was used for encryption.
This API does not require authentication. All security is handled through the encryption key you provide.
https://asetarek.iamsigmaboy.workers.dev
Encrypts plaintext using AES-256-CBC with a key derived from your input.
| Parameter | Type | Required | Description |
|---|---|---|---|
action
|
String | Required | Must be set to "encrypt" |
text
|
String | Required | Plaintext to encrypt |
key
|
String | Required | Encryption key (will be hashed with SHA-256) |
{
"action": "encrypt",
"text": "This is a secret message",
"key": "my-secret-password"
}
{
"status": "success",
"action": "encrypt",
"result": "8J+UkQ...long-encrypted-string...QkJCQ==",
"algorithm": "AES-CBC",
"key_hash": "SHA-256"
}
Decrypts ciphertext using AES-256-CBC with the original key.
| Parameter | Type | Required | Description |
|---|---|---|---|
action
|
String | Required | Must be set to "decrypt" |
text
|
String | Required | Encrypted text to decrypt (base64 encoded) |
key
|
String | Required | Original encryption key |
{
"action": "decrypt",
"text": "8J+UkQ...long-encrypted-string...QkJCQ==",
"key": "my-secret-password"
}
{
"status": "success",
"action": "decrypt",
"result": "This is a secret message",
"algorithm": "AES-CBC",
"key_hash": "SHA-256"
}
{
"status": "error",
"message": "Missing parameters",
"required": ["action", "text", "key"],
"received": ["action", "text"]
}
{
"status": "error",
"message": "Invalid action",
"valid_actions": ["encrypt", "decrypt"]
}
{
"status": "error",
"message": "Processing error",
"details": "The operation failed for some reason"
}
© 2026 Secure AES Encryption Service. All rights reserved.