FssAy / zero_escape

A Rust crate for encoding and decoding data using the Zero Escape Encoding method.

Home Page:https://docs.rs/zero_escape/latest/zero_escape

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A Rust crate for encoding and decoding data using the Zero Escape Encoding method.

https://docs.rs/zero_escape/latest/zero_escape


Languages

Language:Rust 100.0%