An open API service indexing awesome lists of open source software.

https://github.com/girkovarpa/hutton-rust

A Rust crate for the Hutton cipher.
https://github.com/girkovarpa/hutton-rust

cipher encrypt encryption hutton key passphrase password

Last synced: about 1 year ago
JSON representation

A Rust crate for the Hutton cipher.

Awesome Lists containing this project

README

          

# The Hutton Cipher

The Hutton Cipher of [Eric Bond Hutton](https://old.reddit.com/u/EricBondHutton), implemented in Rust (as a crate).

## Usage Example

```rust
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
}
```