5 releases

0.1.5 Sep 10, 2019
0.1.4 Sep 5, 2019
0.1.3 Sep 5, 2019
0.1.2 Sep 4, 2019
0.1.0 Sep 4, 2019

#67 in #encode-decode

22 downloads per month

MIT/Apache

420KB
132 lines

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.

No runtime deps