Skip to content

Namat96/cryptography-with-python

Repository files navigation

Cryptography with Python

This repository contains my learning journey of cryptography implemented in Python. The goal of this repository is to understand basic cryptographic concepts and implement them using simple Python code.

This work combines mathematics, logic, and programming and is part of my preparation for advanced studies in cryptography.


🔐 Topics Covered

This repository includes Python implementations of the following topics:

  • Classical cryptography ciphers
  • Reverse Cipher
  • Vigenère Cipher
  • Hash functions (SHA-256)
  • Public key cryptography (RSA)
  • Basic encryption and decryption logic
  • Mathematical concepts used in cryptography

📂 Files in This Repository

  • Reverse-Cipher.py
    Simple encryption by reversing text to understand basic cipher logic.

  • Vigenère-Cipher.py
    Implementation of the classical Vigenère cipher using a keyword.

  • SHA-256-Hash-Function.py
    Demonstration of hashing using the SHA-256 algorithm.

  • RSA.py
    Basic implementation of the RSA algorithm to understand public-key cryptography concepts.


🎯 Purpose of This Repository

  • To understand how cryptographic algorithms work
  • To apply mathematical logic using Python
  • To build a foundation for modern and post-quantum cryptography
  • To prepare for MS studies and research in cryptography

🧮 Mathematical Background

This repository is based on concepts such as:

  • Modular arithmetic
  • Prime numbers
  • Basic number theory
  • One-way functions
  • Encryption and decryption principles

🛠️ How to Run the Code

  1. Install Python (version 3.x recommended)
  2. Clone the repository:
    git clone https://github.com/Namat96/cryptography-with-python.git

About

My learning journey of cryptography implemented in Python (Ciphers, Hashing, RSA, etc.)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages