uwucodec

Crates.iouwucodec
lib.rsuwucodec
version0.1.1
sourcesrc
created_at2021-07-24 10:13:59.675025
updated_at2021-07-24 11:29:37.257206
descriptionEncode your data into uwu and back.
homepage
repositoryhttps://github.com/Trivernis/uwucodec
max_upload_size
id426688
size27,333
Julius Riegel (Trivernis)

documentation

README

UWU-Codec

I'm sorry.

Motivation

Do you also think hexadecimal byte encoding is boring? Do you want more uwu in your life? This program solves both of your problems. Bytes are encoded into two words according to the following mapping:

nibble word
0000 uwu
0001 owo
0010 umu
0011 nya
0100 omo
0101 o_o
0110 q_p
0111 u_u
1000 o~o
1001 UwU
1010 OwO
1011 UmU
1100 OmO
1101 O_O
1110 U_U
1111 Nya

Usage

Use the uwuencode and uwudecode binaries like this:

uwuencode path/to/raw/input path/to/encoded/output
uwudecode path/to/encoded/input path/to/raw/output

You can also use the functions in your project to spice things up:

use uwucodec::encode;
fn main() {
    let encoded = encode(&"Hello World".as_bytes());
    let decoded = decode(&encoded);
}

License

Apache-2.0

Commit count: 3

cargo fmt