Skip to content

vermashaurya/Encryption-models

Repository files navigation

Cryptography Models

A comprehensive, product-ready repository containing various classical and modern encryption models implemented in Python, complete with a beautiful interactive Web UI for demonstration.

Python

Interactive Web UI

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

Python Implementations

All python scripts have been refactored for readability and ease of use. Each script contains both Encryption and Decryption functionality.

Included Ciphers

  • 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 the cryptography library (Fernet).

Extras

  • 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.

How to use

To run any of the models in your terminal, simply use:

python caesar_cipher.py

(Replace caesar_cipher.py with your desired cipher script).

Contribution

Feel free to fork this project, submit pull requests, or open an issue if you have suggestions.

License

This project is licensed under the MIT License

Copyright (c) 2026

License

About

Cryptography analysis and comparison of various models

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors