Disclaimer: This is not the most secure tool on the planet, it's simply a personal project for passing time and probably won't work against an actual attacker with bad intentions.
Encrypts and Decrypts any .txt
file in the current directory when a password is provided (unless the names of the files are specified in the EXCEPTIONS
array).
Useful to hide text from people with either physical or remote access to your machine (as long as they're not actual attackers), you can use for diaries (just an example).
- Download
cipher.py
to your machine. - Open a command prompt on the directory where
cipher.py
is: - Type
python
, press Enter, typeimport os; os.urandom(16)
, press Enter and copy the line that shows up (it looks likeb'xxxxxxxxxxxxxxxxxxx'
) - Open
cipher.py
and look for line 8 where it saysSALT = b'xxxxxxxxxxxxxxx'
, then just paste that line you copied after the=
. - Save it and run it to encrypt the
.txt
files that are in the same directory.
- You can use any password on encryption but if you try to decrypt with a different password than you used it's gonna give an error.
- I recommend use of auto-py-to-exe to compile
.py
in.exe
which makes it harder for someone to see the code.
If you don't care about the security of generating your own salt then you can download a version that comes with a pre-generated salt, links are on the Releases tab.