A password protected Python3 diary that encrypts your entries
Download it here: https://www.python.org/downloads/
python3 -m ensurepip
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
chmod a+x ./pyairy.py
./pyairy.py
Then enter a password to protect your entries
All arguments are ran with ./pyairy.py <operation>
Create an entry
Lists all entries as small snippets and prompts you to select an entry to decrypt and read
Displays all of these operations
BCrypt is used to hash your password which is then stored locally.
PyCrypto encrypts and decrypts your entries after verifying your password with BCrypt.
Your password is stored as a hash so that no one can determine what your password is as plain text.
Your password is also used as a key to encrypt your entries.
The password is always verified before encryption so that your entries always use the same key.
After you are all set up, you can edit the shebang to use your venv without having to source it everytime.
#!/usr/bin/env python3
Can be changed to:
#!/Users/<USER>/bin/pyairy/venv/bin/python3
On line 31, assign a path to DIR_PATH
I use /Users/<USER>/Documents
alias pyairy='/<ABSOLUTE_PATH_TO_PYAIRY>/pyairy.py'