simple-encdec 0.0.1

Simple Encrypt / Decrypt
Documentation
  • Coverage
  • 66.67%
    2 out of 3 items documented2 out of 2 items with examples
  • Size
  • Source code size: 14.72 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.07 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • marirs

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