uuencode 0.1.5

uuencoder/decoder
Documentation

uuencode

Encodes/decodes data in the uuencode format.

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

Installation

Add this library to your Cargo.toml:

[dependencies]
uuencode = "^0.1.0"

Then use the library to encode or decode some data:

extern crate uuencode;

fn main() {
    let filename = "wow.jpg";
    let original_decoded = "Cat";
    let encoded = uuencode(filename, original_decoded.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.