This program is used for encrypting and decrypting files using AES 256-bit key encryption.
A user-defined password can also be defined for secure encryption and decryption. All given passwords are converted to a 256-bit key using SHA256 Hash Algorithm. Since hash for any two given passwords can never be the same, 256-bit key generated is also unique, thus the confidentiality of the encrypted file is guaranteed.
Download the FileEncrypter.py file.
python FileEncrypter.py
Encryption- python FileEncrypter.py -e filename.txt
Decryption-python FileEncrypter.py -d filename.txt.enc
Encryption- python FileEncrypter.py -e filename.txt -p MyPassword
Decryption-python FileEncrypter.py -d filename.txt.enc -p MyPassword
Note- Encrypted file is saved as filename.txt.enc