Minipy is an API-based encryption system that supports various encryption algorithms, providing a secure and flexible solution for encrypting and decrypting files.
- Clone the repo:
git clone git@github.com:Dark-Kernel/minipy.git && cd minipy
- Create virtual env
python -m venv env
source env/bin/activate
- Install dependencies:
pip install -r requirements.txt
- Run the API
flask run
Available algorithms:
- RSA
- Fernet
- AES ( with ECC encryption )
- RSA
curl -F "file=@<plain.file>" -F "pass=password" "http://localhost:5000/encr?algo=rsa" -OJ
If you want to encrypt another file with same private key you have:
curl -F "file=@<another.file>" -F "pass=password" -F "privkey=@key.pem" "http://localhost:5000/encr?algo=rsa" -OJ
- Fernet
curl -F "file=@<plain.file>" -F "pass=password" "http://localhost:5000/encr?algo=fernet" -OJ
curl -F "file=@<another.file>" -F "pass=password" -F "privkey=@key.pem" "http://localhost:5000/encr?algo=fernet" -OJ
- AES
curl -F "file=@<plain.file>" -F "pass=password" "http://localhost:5000/encr?algo=aes" -OJ
- RSA
curl -F "cipher=@cipher.encr" -F "privkey=@key.pem" -F "pass=password" "http://localhost:5000/decr?algo=rsa" -OJ
- Fernet
curl -F "cipher=@cipher.encr" -F "privkey=@key.pem" -F "pass=password" "http://localhost:5000/decr?algo=fernet" -OJ
- AES
curl -F "cipher=@cipher.encr" -F "privkey=@key.pem" -F "symkey=@sym_key.pem" "http://localhost:5000/decr?algo=aes" -OJ
Feel free to contribute to this project.
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.