The Franckate Cipher API turns any text into a structured ciphertext you can decode by hand. Perfect for learning cryptography โ one API call shows you exactly how it works.
import requests API_KEY = "your_api_key_here" BASE = "https://franckate-backend.onrender.com/api" # Encrypt res = requests.post( f"{BASE}/encrypt", headers={"X-API-Key": API_KEY}, json={"text": "Hello World"} ) data = res.json() print(data["encrypted"]) # โ U7.L4.L11.L11.L14.F26.U22.L14.L17.L11.L3.
Franckate is a substitution cipher. Every character maps to a category prefix + its position in that category. Dot-separated. Human-readable. Teachable.
All endpoints accept JSON bodies and return JSON. Authenticate with your API key in the X-API-Key header.
Encrypt any plaintext string using the Franckate cipher.
{
"text": "Hello World"
}
| Field | Type | Required | Description |
|---|---|---|---|
| text | string | Yes | Plaintext to encrypt (max 10,000 chars) |
{
"original": "Hello World",
"encrypted": "U7.L4.L11.L11.L14.F26.U22.L14.L17.L11.L3.",
"length": {
"input": 11,
"output": 42
},
"algorithm": "franckate-v1"
}
curl -X POST https://franckater-backend.onrender.com/api/encrypt \ -H "Content-Type: application/json" \ -H "X-API-Key: YOUR_API_KEY" \ -d '{"text": "Hello World"}'
import requests response = requests.post( "https://franckater-backend.onrender.com/api/encrypt", headers={"X-API-Key": "YOUR_API_KEY"}, json={"text": "Hello World"} ) data = response.json() print(data["encrypted"])
const response = await fetch( "https://franckater-backend.onrender.com/api/encrypt", { method: "POST", headers: { "Content-Type": "application/json", "X-API-Key": "YOUR_API_KEY" }, body: JSON.stringify({ text: "Hello World" }) } ); const data = await response.json(); console.log(data.encrypted);
Decrypt Franckate ciphertext back to plaintext.
{
"text": "U7.L4.L11.L11.L14."
}
{
"original": "U7.L4.L11.L11.L14.",
"decrypted": "Hello",
"algorithm": "franckate-v1"
}
curl -X POST https://franckater-backend.onrender.com/api/decrypt \ -H "Content-Type: application/json" \ -H "X-API-Key: YOUR_API_KEY" \ -d '{"text": "U7.L4.L11.L11.L14."}'
Returns a character-by-character breakdown of the encryption process. Perfect for building cryptography tutorials.
{
"original": "Hi",
"encrypted": "U7.L8.",
"total_steps": 2,
"steps": [
{
"position": 0,
"character": "H",
"category": "uppercase",
"category_code": "U",
"index_in_category": 7,
"token": "U7.",
"explanation": "'H' is uppercase at index 7 โ 'U7.'"
},
...
]
}
Encrypt up to 50 strings in a single request.
{
"texts": ["Hello", "World", "Crypto"]
}
{
"count": 3,
"algorithm": "franckate-v1",
"results": [
{ "index": 0, "original": "Hello", "encrypted": "U7.L4.L11.L11.L14." },
{ "index": 1, "original": "World", "encrypted": "U22.L14.L17.L11.L3." },
{ "index": 2, "original": "Crypto", "encrypted": "U2.L17.L24.L15.L19.L14." }
]
}
Analyze the character distribution of a text before encrypting โ great for understanding cipher expansion ratios.
{
"analysis": {
"length": 11,
"unique_characters": 8,
"counts": { "uppercase": 2, "lowercase": 8, "digits": 0, "special": 1 },
"percentages": { "uppercase": 18.2, "lowercase": 72.7, ... }
}
}
Returns API metadata โ no key required. Good for discovery and health checks.
| Status | Meaning |
|---|---|
| 400 | Missing or invalid request body |
| 401 | No API key provided |
| 403 | Invalid or inactive API key |
| 409 | Email already registered |
| 413 | Input too long |
| 422 | Decryption failed โ invalid ciphertext format |
| 429 | Rate limit exceeded |
Test the API directly โ paste your API key below and start encrypting.
Free for students, educators, and hobbyists. No credit card needed.