ProtonMail / gosop

Stateless CLI for GopenPGP
MIT License
32 stars 10 forks source link

SESSIONKEY inputs should accept trailing whitespace #11

Closed dkg closed 2 years ago

dkg commented 2 years ago

if i have a trailing newline at the end of a SESSIONKEY file, it currently causes gosop decrypt --with-session-key to complain:

decrypt: encoding/hex: invalid byte: U+000A

It would be better to gracefully ignore trailing whitespace here.

twiss commented 2 years ago

Fixed in 92fc880b0f3bc7f5c7f64c7e5894f1ff347ea619 :)