Closed teythoon closed 6 years ago
Note: not having support for this introduces a potential security issue: because sq encrypt
reads the password (via rpassword) and the content to encrypt from stdin, the password becomes the first line of the file!
Would you mind telling me what sq
is ?
Of course, sorry! That is the command line interface for Sequoia, an OpenPGP implementation like gpg. Please see: https://gitlab.com/sequoia-pgp/sequoia https://sequoia-pgp.org
Oh, alright, well that makes sense then !
Feel free to add support through a PR, I'll be glad to review and merge as long as it doesn't contain breaking changes :+1:
Actually, allow me to correct that: breaking changes are OK but should be avoided if possible. I'll just bump the major version if there is a breaking change.
This allows us to
echo huhu | sq encrypt --symmetric
and prompt for a password.