This API requires the following ports to be open:
All other ports should be closed for security.
Single endpoint that handles both encryption and decryption operations.
{
"operation": "encrypt|decrypt",
"text": "Text to process",
"key": "Encryption key",
"argonPass": "Argon2 password",
"format": "One of supported formats"
}
// Success
{
"operation": "encrypt|decrypt",
"result": "Processed text",
"format": "Used format"
}
// Error
{
"error": "Error message"
}
// Encryption Request
curl -X POST http://localhost:5000/cipher/ \
-H "Content-Type: application/json" \
-d '{
"operation": "encrypt",
"text": "HELLO WORLD",
"key": "IQ",
"argonPass": "LFG",
"format": "runic"
}'
// Decryption Request
curl -X POST http://localhost:5000/cipher/ \
-H "Content-Type: application/json" \
-d '{
"operation": "decrypt",
"text": "ᛜᛡᚸᚬᛠ ᛎᛠᛖᚸᛅ",
"key": "IQ",
"argonPass": "LFG",
"format": "runic"
}'