Here’s a simple file encryption tool written in Python using the cryptography library. It allows you to encrypt and decrypt files securely with a password-derived key.
Usage
-
Encrypt:
python encrypt_tool.py encrypt filename.txt yourpassword -
Decrypt:
python encrypt_tool.py decrypt filename.txt.enc yourpassword
This uses a strong password-based key derivation (PBKDF2) with a random salt stored alongside the encrypted file for security, and symmetric encryption via Fernet (AES-128 in CBC mode with HMAC). Let me know if you want me to adapt it to other languages or add features!
Share this Page your favorite way: Click any app below to share.