aead / minisign

A dead simple tool to sign files and verify digital signatures.
https://jedisct1.github.io/minisign/
MIT License
116 stars 15 forks source link

Read password from STDIN #11

Closed johanbrandhorst closed 3 years ago

johanbrandhorst commented 3 years ago

Hi,

It would be great to be able to read the password from STDIN, both for the initial key generation, and for signature creation. It appears the original supports this (from https://github.com/jedisct1/minisign/issues/43), while this implementation currently errors with Error: failed to read password: inappropriate ioctl for device.

aead commented 3 years ago

@johanbrandhorst Thanks for pointing this out 👍 - PR #12 fixes this by adding support for reading passwords from STDIN when generating / re-creating keys and signing messages.