#codec #data-encoding #escaping #zero #decoding #decode #language

zero_escape

Provides encoding and decoding data using the Zero Escape Encoding method

1 stable release

1.0.0 Oct 26, 2023

#1871 in Encoding

GPL-3.0-only

120KB
166 lines

Zero Escape Encoding

Documentation Repository

The zero_escape crate provides functionality for encoding and decoding data using the Zero Escape Encoding method.

Features

  • Encoding: Convert your data into Zero Escape encoded format. View Source
  • Decoding: Decode Zero Escape encoded data back to its original format. View Source

Usage

Add zero_escape to your Cargo.toml dependencies:

[dependencies]
zero_escape = "0.1.0"

Using the encoding functions:

fn main() {
    // Get the data you want to encode
    let any_data: Vec<u8> = get_any_data();
    
    // Encode and decode using ZEE
    let encoded = zero_escape::encode(any_data);
    let decoded = zero_escape::decode(encoded);
}

Diagram

The following diagram shows how the encoding algorithm works:

License

This project is licensed under the GPL-3.0-only license.

No runtime deps