εγλχφ

εγλχφ api reference

Full access to quantum-secure architecture integration, authentication, and encryption capabilities.

1. quickstart

getting started

Integrate εγλχφ in minutes using our REST-powered API with quantum-encrypted channels.


POST https://api.εγλχφ.com/v3/query
Authorization: Bearer {your_token}
Content-Type: application/json

{
    "action": "encrypt",
    "payload": "your data here"
}
response: quantum-encrypted ciphertext in base64 format
200 OK
successful encryption
422
invalid payload format
401
authentication failure

2. key endpoints

/v3/crypto/encrypt

Convert data to quantum-resistant lattice-based encryption

payload size limit:
512 KB
rate limit:
1000/min

/v3/crypto/decrypt

Decrypt quantum-resistant encrypted payloads with 4096-bit lattice keys

requires:
valid session ID

3. authentication

token-based auth


GET https://api.εγλχφ.com/v3/auth
Content-Type: application/json
X-API-Key: your_secret_key

Receives a JWT token valid for 24h with quantum-encrypted session cookie

4. integration examples

javascript


const res = await fetch('https://api.εγλχφ.com/v3/crypto/encrypt', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer ' + token,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    'plaintext': 'Secret Message'
  })
});

python


import requests

response = requests.post(
    'https://api.εγλχφ.com/v3/crypto/decrypt',
    headers={
        'Authorization': 'Bearer YOUR_TOKEN',
        'Content-Type': 'application/json'
    },
    json={
        'ciphertext': 'base64_encoded_data'
    }
)