hutton-rust

Crates.iohutton-rust
lib.rshutton-rust
version0.1.1
sourcesrc
created_at2020-10-07 08:38:40.097549
updated_at2020-10-07 08:48:37.923377
descriptionThe Hutton cipher implemented as a Rust crate
homepage
repositoryhttps://github.com/GirkovArpa/hutton-rust
max_upload_size
id296880
size5,619
(GirkovArpa)

documentation

README

The Hutton Cipher

The Hutton Cipher of Eric Bond Hutton, implemented in Rust (as a crate).

Usage Example

extern crate hutton_rust;

use hutton_rust::encrypt;

fn main() {
  // the following 3 values must all consist of lowercase letters in the range [a-z]
  // else, panicc!
  let input = String::from("helloworld");
  let password = String::from("foo");
  let key = String::from("bar");
  // the last boolean argument is whether to decrypt instead of encrypt
  let output = encrypt(&input, &password, &key, false);
  println!("{}", output); // => pwckfenttc
}
Commit count: 16

cargo fmt