base16384

Crates.iobase16384
lib.rsbase16384
version0.1.0
sourcesrc
created_at2023-07-26 02:23:15.523881
updated_at2023-07-26 02:23:15.523881
descriptionEncode binary file to printable utf16be, and vice versa.
homepage
repositoryhttps://github.com/Wybxc/base16384-rs
max_upload_size
id926168
size73,102
(Wybxc)

documentation

README

base16384

Encode binary file to printable utf16be, and vice versa.

It is a Rust reimplementation of base16384.

Examples

use base16384::Base16384;

let data = b"12345678";
let encoded = Base16384::encode(data);
let text = String::from_utf16(&encoded).unwrap();
assert_eq!(text, "婌焳廔萷尀㴁");
use base16384::Base16384;

let data = "婌焳廔萷尀㴁".encode_utf16().collect::<Vec<_>>();
let decoded = Base16384::decode(&data).unwrap();
assert_eq!(decoded, b"12345678");
Commit count: 12

cargo fmt