chanced / navajo

A cryptographic toolkit for Rust
Apache License 2.0
1 stars 0 forks source link

navajo-cli: Add newline back to end of output #57

Open chanced opened 1 year ago

chanced commented 1 year ago

The base64 crate currently returns an error when it encounters a newline, see https://github.com/marshallpierce/rust-base64/issues/236. Once resolved, add newline to avoid the partial line indicator:

Screenshot 2023-04-22 at 6 54 50 PM

The binary format of encrypted keyrings are already indifferent to trailing characters.

An alternative would be conditionally adding newlines if the output is not to be encoded but I'd rather re-enable it all in one go.