OpenSSH fingerprint visualization algorithm in Rust. Just for my learning purpose.
See examples/basic.rs
.
Handy CLI is available at src/main.rs
.
$ cargo run --quiet -- -h
OpenSSH fingerprint visualization algorithm in Rust.
Usage: drunken-bishop [OPTIONS] [STRING]...
Arguments:
[STRING]... Strings to visualize. All strings will be joined with a space. If none, read from stdin
Options:
-s, --sha256 Use SHA-256 digest of given string
-v, --verbose Verbose output
-h, --help Print help
-V, --version Print version
e.g.
$ cargo run --quiet -- --sha256 --verbose "hello world"
2024-05-14T05:56:44.200450Z DEBUG drunken_bishop: Input string: hello world
2024-05-14T05:56:44.200501Z DEBUG drunken_bishop: SHA-256: true
2024-05-14T05:56:44.200510Z DEBUG drunken_bishop: Verbose: true
2024-05-14T05:56:44.200530Z DEBUG drunken_bishop: SHA-256 digest: b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9
+-----------------+
| |
| |
| .. |
| =.o. |
| ...So* +. |
| ..oooB.# . |
| ...o+oB O.. |
| .. +o..++o . |
| ..++oE o*=+. |
+-----------------+
MIT. See LICENSE
.
- The drunken bishop: An analysis of the OpenSSH fingerprint visualization algorithm; Dirk Loss, Tobias Limmer, Alexander von Gernler, September 20, 2009