Cipher API Documentation

Required Ports

This API requires the following ports to be open:

  • 443 - HTTPS traffic (required)
  • 80 - HTTP traffic (redirects to HTTPS)
  • 53 - DNS resolution (for domain name resolution)

All other ports should be closed for security.

Endpoint: /cipher/

Single endpoint that handles both encryption and decryption operations.

Request Format

{
    "operation": "encrypt|decrypt",
    "text": "Text to process",
    "key": "Encryption key",
    "argonPass": "Argon2 password",
    "format": "One of supported formats"
}

Supported Formats

  • runic
  • chinese
  • thai
  • hieroglyphs
  • korean
  • greek
  • japanese
  • phonetic
  • cyrillic
  • alchemical
  • symbols
  • seed
  • emoji

Response Format

// Success
{
    "operation": "encrypt|decrypt",
    "result": "Processed text",
    "format": "Used format"
}

// Error
{
    "error": "Error message"
}

Example Usage

// 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"
}'