<p dir="ltr">First of all don't change the default. The second method of looking for the gpg-id would accomplish this but then you can't have an symmetric subdirectory. </p>
<p dir="ltr">I haven't looked at the code too much. If you open a PR I would be glad to to a review (note I'm not a committer so my reviews aren't deciding) </p>
<div class="gmail_quote">On Jan 26, 2016 2:19 AM, "Dashamir Hoxha" <<a href="mailto:dashohoxha@gmail.com">dashohoxha@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div>This works, as a proof of concept:<div><a href="https://github.com/dashohoxha/password-store/commit/e8f6ab50150a156f8736467bcce7a164d4253886" target="_blank">https://github.com/dashohoxha/password-store/commit/e8f6ab50150a156f8736467bcce7a164d4253886</a><br></div><div><br></div><div>If the variable $PASSWORD_STORE_GPG_ENCRYPTION</div><div>is set to 'asymmetric', it will work as usual.</div><div>Otherwise it will use the symmetric encryption.</div><div><br></div><div>However I am not satisfied with this. Having to set the variable</div><div>PASSWORD_STORE_GPG_ENCRYPTION is a bit awkward.<br></div><div>There must be a better way. For example, we can check for the</div><div>presence of the file '.gpg-id'. If it is there, assume asymmetric</div><div>encryption, otherwise, assume symmetric encryption.</div><div><br></div><div>What do you think?</div><div><br></div><div>Dashamir</div></div>
<br>_______________________________________________<br>
Password-Store mailing list<br>
<a href="mailto:Password-Store@lists.zx2c4.com">Password-Store@lists.zx2c4.com</a><br>
<a href="http://lists.zx2c4.com/mailman/listinfo/password-store" rel="noreferrer" target="_blank">http://lists.zx2c4.com/mailman/listinfo/password-store</a><br>
<br></blockquote></div>