This project provides a Python-based solution for encrypting and decrypting strings using a combination of ECC (Elliptic Curve Cryptography) and AES (Advanced Encryption Standard). The encryption process ensures both the confidentiality and integrity of the data.
- ECC Key Generation: Generate ECC key pairs for secure encryption.
- AES Encryption: Encrypt data using AES-256 GCM for confidentiality.
- ECDH Key Exchange: Securely exchange AES keys using ECDH.
- HMAC: Ensure data integrity with HMAC.
- Python 3.10+
cryptographylibrary
-
Clone the repository:
git clone https://github.com/rawrmonster17/string-encryption.git cd string-encryption -
Create a virtual environment and activate it:
python3 -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
To encrypt a string, use the -e option followed by the string you want to encrypt:
python3 ./string-encryption.py -e "Your secret message"To decrypt a string, use the '-d' option followed by the string you want to decrypt:
python3 ./string-encryption.py -d "Your encrypted string"