ACTIVE MAINTENANCE

ENCRYPT
EVERYTHING

Shift reality, not just letters. The Python library that brings the Caesar Cipher into the modern era with Digit, Symbol & Emoji support.

$ pip install CaesarCipher.extended
Copied!
Live Demo
Downloads License Stars
cipher.encrypt()

Interactive
Playground

Don't just trust the docs. Test the algorithm right here. This interface mimics the Python library's logic using a JavaScript port. Supports numbers, symbols, and preservation of case.

Instant Feedback

Real-time encryption as you type

Secure Logic

Same algorithm as the Python package

python3 -m CaesarCipher.extended
Shift Key 3
...

Why use this Package?

Full Number Shifting

Classic Caesar ignores numbers. We don't. Shift "123" to "456" securely while maintaining formatting.

Symbol & Emoji

Encrypt special characters and emojis. Turn "Hello 😊" into hidden cipher text effortlessly.

File Operations

Direct .encrypt_file() methods to handle I/O safely in-place. No more manual read/write loops.

Pure Python

Zero dependencies. Lightweight. Just install and import. Works on Python 3.11+.

Type Safe

Fully type-hinted methods ensuring excellent IDE support and error checking during development.

GPLv3 License

Open source and free software. You have the freedom to share and change all versions.

example.py
from CaesarCipher import Encryption, Decryption

# 1. Initialize Encryption
cipher = Encryption(
    "SecretData_123", 
    shift=5, 
    alterNumbers=True
)

# 2. Get Result
encrypted_text = cipher.encrypt()
print(f"Encrypted: {encrypted_text}")

# 3. File Handling (In-place)
if cipher.encrypt_file('config.yml'):
    print("File secured successfully.")