UniAz 🔐
UniAz is a small Rust crate that provides a simple, Unicode-aware way to encode a single Unicode character into a custom alphabet and recover it back. It combines a base converter and a light-weight cipher permutation to produce obfuscated string representations of characters.
Key features
- 🔁 Encrypt and decrypt individual Unicode characters via
UniAz. - 🧩 Uses a configurable alphabet (default: lowercase A–Z) and anybase conversion.
- ⚡ Lightweight: single-file API for easy integration and testing.
Installation
cargo add uniaz
Quick example
use UniAz;
API (important)
UniAz::new()— create an instance with the default alphabet.UniAz::encrypt(&char) -> String— convert a char to an encrypted string.UniAz::decrypt(&str) -> char— recover the original char from an encrypted string.
Docs & tests
- Generate and open the API docs:
cargo doc --open
- Run tests:
cargo test
License
- See the repository root for license files.
Enjoy! 🚀