Metadata-Version: 2.1
Name: sps_crypto
Version: 1.0.77
Summary: Pure-Python implementation of cryptographic algorithms (RSA, ElGamal, AES, DES, Diffie-Hellman)
Home-page: https://github.com/amspsingh04/sps_crypto
Author: Shourya Pratap Singh
Author-email: sp.singh@gmail.com
Project-URL: Bug Reports, https://github.com/amspsingh04/sps_crypto/issues
Project-URL: Source, https://github.com/amspsingh04/sps_crypto
Project-URL: Documentation, https://github.com/amspsingh04/sps_crypto/blob/main/README.md
Keywords: cryptography,educational,rsa,elgamal,aes,des,diffie-hellman,digital signatures
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Education
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Security :: Cryptography
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Operating System :: OS Independent
Classifier: Typing :: Typed
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: cryptography>=3.4
Provides-Extra: dev
Requires-Dist: pytest>=6.0; extra == "dev"
Requires-Dist: pytest-cov>=2.0; extra == "dev"
Requires-Dist: mypy>=0.910; extra == "dev"
Requires-Dist: flake8>=3.9; extra == "dev"
Provides-Extra: docs
Requires-Dist: sphinx>=4.0; extra == "docs"
Requires-Dist: sphinx-rtd-theme>=0.5; extra == "docs"

# sps-crypto
A Python library providing implementations of various cryptographic algorithms. This project includes classical ciphers, modern symmetric and asymmetric encryption algorithms, digital signatures, and related utilities. It is primarily intended for educational purposes and developers interested in exploring cryptography.

**Note:** This library is currently in **Stable** status (version `1.0.77`).

## Features

The library currently includes implementations for:

**Classical Ciphers:**
* Caesar Cipher
* Vigenere Cipher
* Hill Cipher
* Playfair Cipher

**Symmetric Encryption:**
* DES (Data Encryption Standard)
* S-DES (Simplified DES)
* AES (Advanced Encryption Standard) - *Currently includes MixColumns/InvMixColumns operations.*

**Asymmetric Encryption:**
* RSA (Rivest–Shamir–Adleman)
* ElGamal Encryption System

**Digital Signatures:**
* RSA Digital Signature
* ElGamal Digital Signature

**Key Exchange:**
* Diffie-Hellman Key Exchange (including simulation of Man-in-the-Middle attack)

**Utilities:**
* Prime number generation and testing
* Primitive root finding
* Modular exponentiation and modular inverse
* Hashing (SHA-256 used internally for signatures)
* Text/Integer conversions for cryptographic operations

**Networking:**
* Basic client/server socket implementation (details in `examples/sockets.py`)

## Installation

You can install the library using pip:

```bash
pip install sps-crypto
```

Requires Python version 3.6 or higher.

Usage Examples
Here are a few basic examples of how to use the library.
Usage examples can be found in the examples directory


Author
Shourya Pratap Singh

Project Links
GitHub Repository: https://github.com/amspsingh04/sps_crypto
Bug Reports: https://github.com/amspsingh04/sps_crypto/issues

Contributing
Contributions, issues, and feature requests are welcome. Please refer to the GitHub repository and issue tracker.
