gosop icon indicating copy to clipboard operation
gosop copied to clipboard

Is there a way to decrypt using private key with password?

Open sartor opened this issue 1 year ago • 1 comments
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

sartor avatar Feb 26 '24 10:02 sartor

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 :)

twiss avatar Feb 26 '24 12:02 twiss

--with-key-password is implemented now :)

twiss avatar Nov 08 '24 16:11 twiss