Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sartor opened this issue Feb 26, 2024 · 1 comment
Open

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

sartor opened this issue Feb 26, 2024 · 1 comment

Comments

@sartor
Copy link

sartor commented Feb 26, 2024

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
@twiss
Copy link
Member

twiss commented Feb 26, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants