gosop
gosop copied to clipboard
Is there a way to decrypt using private key with password?
trafficstars
Hi. There are two options to decrypt message either with password or with private key. But not both of them.
May be I am doing something wrong?
I've tried:
gosop decrypt --with-password=pass priv.asc < encrypted.asc
decrypt: open frefer: no such file or directory
gosop decrypt priv.asc --with-password=pass < encrypted.asc
decrypt: gopenpgp: unable to add locked key to a keyring
No, currently there's no way to do so, unfortunately. There's a --with-key-password option specified in https://www.ietf.org/archive/id/draft-dkg-openpgp-stateless-cli-09.html, but it's not implemented yet. If you're open to making a PR, it would be welcome :)
--with-key-password is implemented now :)