Build Status

yenc

Encodes bytes into yEnc text and decodes yEnc encoded text back to bytes. See documentation. For more information on yEnc see Wikipedia and yenc.org.

The public API is not yet stable and will change until v0.1.0.

Example: encoding Cargo.toml

``` let inputfilename = "Cargo.toml"; let mut inputfile = std::fs::File::open(&inputfilename).unwrap(); let encodeoptions = yenc::EncodeOptions::new() .parts(1) .linelength(128); let mut outputfile = std::fs::File::create("Cargo.toml.yenc").unwrap();

yenc::yencodefile(&mut inputfile, inputfilename, encodeoptions, &mut output_file) .unwrap(); ```

results in a new file Cargo.toml.yenc

=ybegin line=128 size=302 name=Cargo.toml ���������4����JgJL����L4�������JgJLZXZX\L4�������JgJ�L��������Jf�X�������j�����X���hL�4�����������JgJL��������J���J��������J���� �L4����������JgJL�����dYY������X���Y��������Y����L4�������������JgJL�����dYY����X��Y����YZXZX\Y����YL4��������JgJ�L����LVJL����� �LVJL������L�4�������JgJLws~L44��������������4 =yend size=302 crc32=FB24333B