Quick and dirty password manager.
- Set the FILES_DIR in pass.py. Example:
/home/myname/dpass - Set the KEY_DIR in pass.py.
- Run the python script with the site name as an argument or without Example:
python pass.py githuborpython pass.py - If run without command line argument enter the site name now.
- The password will be copied to the system clipboard. If it does not exist it will be generated first.
The strings are encrypted, which serves no purpose as the key is in the same directory, but may be useful if the KEY_DIR is set to an external drive such as /mnt/usb.
I made this simply because I have a bad habit of reusing passwords which I am trying to break, and this is marginally better than writing them down.
I find this tool very useful if aliased. This is how I set it up on my system:
- Create virtual environment:
python -m venv venv - Activate:
source venv/bin/active - Install requirements:
pip install -r requirements.txt - Add alias to your ~/.bashrc file. For instance, on my system:
alias dpass='/home/user/dev/pass/venv/bin/python /home/user/dev/pass/pass.py' - Load/generate passwords! Example:
dpass github