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

Reading password from stdin does not work #34

Open
beep-beep-beep-boop opened this issue Aug 1, 2024 · 1 comment
Open

Reading password from stdin does not work #34

beep-beep-beep-boop opened this issue Aug 1, 2024 · 1 comment

Comments

@beep-beep-beep-boop
Copy link

It looks like in #12 support was added for reading pw from stdin, but this isn't working for me.

$ echo 12345678 | minisign -G -s my-key.key -p my-key.pub
Please enter a password to protect the secret key.

Password:
Password (one more time): get_password()

It then exits, and no keys are saved on the disk.

@aead
Copy link
Owner

aead commented Aug 6, 2024

@beep-beep-beep-boop I cannot reproduce this.

» echo 12345678 | minisign -G -s my-key.key -p my-key.pub
Deriving a key from the password in order to encrypt the secret key... done

The secret key was saved as my-key.key - Keep it secret!
The public key was saved as my-key.pub - That one can be public.

Files signed using this key pair can be verified with the following command:

minisign -Vm <file> -P RWRhmi/k8vRcsGBkeg8hYWh7+0JAC6HzsuHSIhoWZozOHQ3DJGKKrj/Q
» cat my-key.pub
untrusted comment: minisign public key: B05CF4F2E42F9A61
RWRhmi/k8vRcsGBkeg8hYWh7+0JAC6HzsuHSIhoWZozOHQ3DJGKKrj/Q
                                                                                                  
» cat my-key.key
untrusted comment: minisign encrypted secret key
RWRTY0IymwhdxsG+nfaUBmiPqP3adwMfszI+k2JkKuYEbM8xNlIAAAACAAAAAAAAAEAAAAAAd8zmq3roqJg86kyH3NLcX5FXZaQ1ZfE5BhD4/9wWFuIJm37cyvfCYsL2hnKkjqbXKuXua2zcbT46ILI/fG/xckFL0mb/e8v7rIjMmNLmfNxSt7f5brdcQ668sZTjs67wrHOMuGOkWNQ=

What's the output of minisign -v

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