base256_rs
Base 256 encoder/decoder for Rust
Installation
$ cargo add base256_lib
Usage
From uint8 array to base256 string:
use ;
...
let bytes: & = b"Hello, World!";
let result = u82base256;
println!; // should prints "ĨŅŌŌŏČĀķŏŒŌńā"
From base256 string to uint8 array:
use ;
...
let input: &str = "ĨŅŌŌŏČĀķŏŒŌńā";
let result = base2562u8;
let result_str = match strfrom_utf8 ;
println!; // should prints "Hello, World!"
Charset
Charset used :
àáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿĀāĂ㥹ĆćĈĉĊċČčĎďĐđĒēĔĕĖėĘęĚěĜĝĞğĠġĢģĤĥĦħĨĩĪīĬĭĮįİıIJijĴĵĶķĸĹĺĻļĽľĿŀŁłŃńŅņŇňʼnŊŋŌōŎŏŐőŒœŔŕŖŗŘřŚśŜŝŞşŠšŢţŤťŦŧŨũŪūŬŭŮůŰűŲųŴŵŶŷŸŹźŻżŽžſƀƁƂƃƄƅƆƇƈƉ=_-`~|[]{}ƞ?,()^*$%!#.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/
License
MIT or Apache License 2.0 (at your option).