Crate base67

Crate base67 

Source
Expand description

§Base67 Encoding Library

This library provides base67 encoding and decoding functionality using a 67-character alphabet. Base67 encoding converts binary data into a text representation using 67 printable ASCII characters.

The encoding scheme processes input bytes in chunks of 3 bytes (24 bits) and converts them into 4 base67 characters. Padding with ‘=’ is used when the input length is not a multiple of 3.

§Examples

use base67::{encode, decode};

let data = b"Hello, World!";
let encoded = encode(data);
let decoded = decode(&encoded).unwrap();
assert_eq!(decoded, data);

Functions§

decode
Decodes a base67-encoded string back into binary data.
encode
Encodes binary data into a base67 string representation.