Skip to content

dustinbowers/ascii-openssh-drunken-bishop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drunken Bishop Fingerprint Generator

Create an OpenSSH ASCII fingerprint from a Hex string

Usage

From a terminal: go run main.go <hash>

Or in code:

import "fmt"
import "github.com/dustinbowers/ascii-openssh-drunken-bishop/drunkenbishop"

func main() {

  fingerprint := "a1d0c6e83f027327d8461063f4ac58a6"
  
  db := drunkenbishop.NewDrunkenBishop()
  db.SetTopLabel("MD5")
  db.SetBottomLabel("Test Hash")
  ascii, _ := db.ToAscii(fingerprint)
  
  fmt.Print(ascii)
}

will produce this output:

+------[MD5]------+
| .*.             |
| . = +           |
|  o * + .        |
| = * o . .       |
|E = * o S        |
|   = +           |
|    . o          |
|     . .         |
|                 |
+---[Test Hash]---+

More info

About

Create an OpenSSH ASCII fingerprint from a Hex string

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages