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.
- Host: GitHub
- URL: https://github.com/girkovarpa/hutton-rust
- Owner: GirkovArpa
- License: unlicense
- Created: 2020-10-07T04:40:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-07T08:48:35.000Z (over 5 years ago)
- Last Synced: 2025-02-28T08:43:21.530Z (over 1 year ago)
- Topics: cipher, encrypt, encryption, hutton, key, passphrase, password
- Language: Rust
- Homepage: https://hutton-cipher.netlify.app/
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
}
```