Unecessary prompt for password
Myridium opened this issue · 2 comments
Myridium commented
When editing a password, passage
prompts for the password once to decrypt the file. But then it asks again when saving the file. It should not need to prompt the second time.
$ passage edit tmp
Enter passphrase for identity file "/home/username/.passage/identities":
Enter passphrase for identity file "/home/username/.passage/identities":
Password unchanged.
Myridium commented
The problem is that the existing file is decrypted (again) to check whether it has changed.
Lines 409 to 416 in 1262d30
FiloSottile commented
This is an intentional design choice of password-store, presumably to catch conflicts that happen during editing, which I don't think I am going to deviate from in passage.