uuencode

Encodes/decodes data in the uuencode format.

Taken from: https://www.reddit.com/r/dailyprogrammer/comments/4xy6i1/20160816challenge279easyuuencoding/

Installation

Add this library to your Cargo.toml: toml [dependencies] uuencode = "^0.1.0"

Then use the library to encode or decode some data: ```rust extern crate uuencode;

fn main() { let filename = "wow.jpg"; let originaldecoded = "Cat"; let encoded = uuencode(filename, originaldecoded.as_bytes()); println!("{}", encoded); // begin 644 wow.jpg\n#0V%T\n`\nend } ```

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.