Base94 Encoding Library
Convert binary data to a compact text-based format using Base94 encoding. Effortlessly encode and decode data for a wide range of use cases. 🔐🔍
Features
- Encode binary data into a Base94-encoded string.
- Decode Base94-encoded strings back to their original binary form.
Usage
To use this library, add it as a dependency in your Cargo.toml:
[]
= "0.1.0"
Then, in your Rust code:
use ;
Supported Bases
The encoding and decoding functions support various bases within the range of 2 to 94. The specified base must be consistent between encoding and decoding operations.
Examples
Encoding and decoding example with a base of 50:
use ;
let data = b"Example data for encoding.";
let base = 50;
let encoded = base94_encode;
let decoded = base94_decode.unwrap;
assert_eq!;