simple-encdec

Crates.iosimple-encdec
lib.rssimple-encdec
version0.0.1
sourcesrc
created_at2022-05-12 03:32:42.962838
updated_at2022-05-12 03:32:42.962838
descriptionSimple Encrypt / Decrypt
homepage
repository
max_upload_size
id584991
size14,840
SG (marirs)

documentation

README

Simple Encrypt / Decrypt

Linux Arm7 Linux x86_64 macOS Windows

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

Commit count: 0

cargo fmt