crypto-invert

Crates.iocrypto-invert
lib.rscrypto-invert
version1.0.1
sourcesrc
created_at2020-09-21 08:04:31.145649
updated_at2020-09-21 08:14:24.842764
descriptionUnicode Upside-Down Mapping
homepage
repositoryhttps://github.com/GalAster/crypto-moe
max_upload_size
id291041
size20,347
SasakiSaki (oovm)

documentation

README

Unicode Invert Text

extern crate crypto_invert;
use crypto_invert::{decode, encode};

#[test]
fn test_encoding() {
    let r1 = encode("i love you!");
    let r2 = encode("I LOVE YOU!");
    assert_eq!(r1, "ᴉ ꞁoʌǝ ʎon¡");
    assert_eq!(r2, "I ꞀOɅƎ ⅄O∩¡");
}

#[test]
fn test_decoding() {
    let r1 = "i love you!";
    let r2 = "I LOVE YOU!";
    assert_eq!(decode(&encode(r1)), r1);
    assert_eq!(decode(&encode(r2)), r2);
}
Commit count: 25

cargo fmt