You are browsing as a guest. Sign up (or log in) to start making projects!

3h 35m 36s logged

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.

0
2

Comments 0

No comments yet. Be the first!