Skip to content

liberocks/base67

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Base67

Build Status Coverage Codacy Badge Contributors License

Base67 is an encoding scheme that uses a 67-character alphabet to convert binary data into text representation.

Usage

use base67::{encode, decode};

fn main() {
    // Encode a string
    let data = b"Hello, World!";
    let encoded = encode(data);
    println!("Encoded: {}", encoded);
    
    // Decode back to original
    let decoded = decode(&encoded).unwrap();
    println!("Decoded: {}", String::from_utf8(decoded).unwrap());
}