1 unstable release
0.0.1 | May 12, 2022 |
---|
#14 in #decrypt
6KB
76 lines
Simple Encrypt / Decrypt
A very simple rust library to encrypt and decrypt strings.
Requirements
- Rust 1.56+ (edition 2021)
Compile
cargo b --release
Example
- Encrypt
use simple_encdec::encrypt;
let x = encrypt("hello world");
assert!(x.is_some());
assert_eq!(x.unwrap(), "a=GQVGsbbyG982gd");
- Decrypt
use simple_encdec::decrypt;
let x = decrypt("a=GQVGsbbyG982gd");
assert!(x.is_some());
assert_eq!(x.unwrap(), "hello world");
License: MIT
Dependencies
~255KB