A comprehensive, product-ready repository containing various classical and modern encryption models implemented in Python, complete with a beautiful interactive Web UI for demonstration.
Experience these ciphers visually! I've built a sleek, interactive web playground where you can encrypt and decrypt messages using classical ciphers directly in your browser.
Live at - https://vermashaurya.github.io/Encryption-models
All python scripts have been refactored for readability and ease of use. Each script contains both Encryption and Decryption functionality.
caesar_cipher.py- A classic substitution cipher based on alphabet shifts.vigenere_cipher.py- A polyalphabetic substitution cipher using a keyword.playfair_cipher.py- A digram substitution cipher using a 5x5 key matrix.rail_fence_cipher.py- A transposition cipher that reads in a zigzag pattern.chacha20_cipher.py- A modern encryption example utilizing thecryptographylibrary (Fernet).
dictionary_attack.py- Simulates a dictionary attack to break basic passwords using cosine similarity.spam_classifier.py- A Machine Learning model (Random Forest) to classify spam vs. ham text.
To run any of the models in your terminal, simply use:
python caesar_cipher.py(Replace caesar_cipher.py with your desired cipher script).
Feel free to fork this project, submit pull requests, or open an issue if you have suggestions.
This project is licensed under the MIT License
