voronoi/drunken-bishop

PHP package for generating SSH random art

0.0.1 2019-07-25 19:51 UTC

This package is auto-updated.

Last update: 2024-05-26 06:48:02 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]-----+