Crates.io | solitaire_cypher_cli |
lib.rs | solitaire_cypher_cli |
version | 0.1.9 |
source | src |
created_at | 2024-02-22 21:33:33.079746 |
updated_at | 2024-02-24 17:02:57.451955 |
description | CLI for the playing card based cypher created by Bruce Schneier and featured in Neal Stephenson’s Cryptonomicon |
homepage | |
repository | https://github.com/anotherstevest2/solitaire |
max_upload_size | |
id | 1149739 |
size | 41,538 |
An implementation of the playing card based cypher created by Bruce Schneier and featured in Neal Stephenson’s "Cryptonomicon". Encrypts or Decrypts stdin to stdout based on the command line provided passphrase. Returns error if the passphrase includes any non-letter characters. Crate solitaire_cypher exists to provide these, and more, functions in a lib. See: https://www.schneier.com/academic/solitaire/ and, of course, read Cryptonomicon!
cargo install solitaire_cypher_cli
$ solitaire_cypher_cli --help
Usage: solitaire_cypher --passphrase <PASSPHRASE> <--encrypt|--decrypt>
Options:
-e, --encrypt Encrypt stdin with keystream generated from passphrase
-d, --decrypt Decrypt stdin with keystream generated from passphrase
-p, --passphrase <PASSPHRASE> passphrase (letters only) for key generation
-h, --help Print help
-V, --version Print version
$ echo "SOLITAIRE" | solitaire_cypher_cli --passphrase cryptonomicon --encrypt
KIRAK SFJAN
$ echo "KIRAK SFJAN" | solitaire_cypher_cli --passphrase cryptonomicon --decrypt
SOLITAIREX
$
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.