voronoi / drunken-bishop
PHP package for generating SSH random art
0.0.1
2019-07-25 19:51 UTC
Requires
- php: >=7.1.3
Requires (Dev)
- orchestra/testbench: ~3.8.0
- phpunit/phpunit: ^7.0
This package is auto-updated.
Last update: 2025-03-26 08:47:06 UTC
README
An SSH Random Art generator based on http://www.dirk-loss.de/sshvis/drunken_bishop.pdf
Installation
composer require voronoi/drunken-bishop
Usage
// SSH public key fingerprint
$fingerprint = "ZvmUf+CE20cNCqZBMHaI+dAdELeY/i+p0wQJBfYoE8U";
$artGenerator = new Voronoi\DrunkenBishop\ArtGenerator();
$artwork = $artGenerator->paint($fingerprint);
print($artwork);
// +---[RSA 2048]----+
// | .o+*B*=. |
// | oE+oB.. |
// | o .++.o o . |
// | o .+ = + . o |
// | ..S + + . .|
// | +.o * o |
// | o..o + o |
// | . +. o |
// | .o .. |
// +----[SHA256]-----+