I added a dictionary where the .json file will be saved, so its not in the same folder as the .py.
For that i used the package PlatformDirs:
dirs = PlatformDirs(“TokenShield”, ensure_exists=True)
After texting i noticed, that there is no way in chaning the master password and no way in deleting a entry.
Entry Deletion (Option 4): Users can now completely remove an app entry from their vault. It also has a confirmation (y/n) to prevent accidental deletion
Master Password Change (Option 5): Added a way to update the master password. It decrypts the vault using the old password and generates a new one.
It was challenging to make the password change. I had to ensure the vault was fully decrypted first, then generate a brand new random (os.urandom(16)) for encryptiom and immediately re encrypt everything with the new key.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.