geluk / pass-winmenu

An easy-to-use password manager for Windows, compatible with pass.
MIT License
385 stars 25 forks source link

Allow encrypting to multiple GPG IDs #85

Closed bratekarate closed 3 years ago

bratekarate commented 3 years ago

With UNIX passwordstore it is possible to encrypt entries to multiple GPG IDs. pass-winmenu on the other hand only uses the first key it finds. This causes kind of a mess when writing from Windows and Linux devices, as some entries will be encrypted to multipel and others only to one ID. Would be great if pass-winmenu would also respect an array of GPG IDs and uses them all as recipient, just as UNIX passwordstore does.

geluk commented 3 years ago

Can you elaborate a bit on how your GPG IDs are structured? The method pass-winmenu currently uses should be the same as used by pass. It starts at the directory of the password file you selected, and looks for a .gpg-id file. If it doesn't find one, it keeps walking up the directory tree until it reaches the root of your password store. All ID's found in the first file are selected as recipients.

bratekarate commented 3 years ago

Hm, maybe my issue is not related to multiple keys at all. I use an env variable PASSWORD_STORE_KEY='KEY1 KEY2'. Could it be that this env variable is not supported in pass-winmenu? I can open another issue for that.

EDIT: I verified that the issue was indeed caused by me using env variables and no .gpg-id file. I honestly forgot about that. Will close this issue and create another one about the env variables.