hutton-rust 0.1.1

The Hutton cipher implemented as a Rust crate
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 5.24 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • GirkovArpa/hutton-rust
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • GirkovArpa

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
}