Generates OpenSSH-style randomart.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Franklin Hu b9badb8daa Support subtitles, and longer titles (#1)
OpenSSH 7.3 supports longer titles (ED25519 256) and subtitles (SHA256).
2017-04-12 08:27:36 +02:00
LICENSE Randomart 2013-10-14 19:54:18 +02:00
randomart.go Support subtitles, and longer titles (#1) 2017-04-12 08:27:36 +02:00
randomart_test.go Support subtitles, and longer titles (#1) 2017-04-12 08:27:36 +02:00
README.md Example 2013-10-14 20:21:51 +02:00

randomart Build Status

Generate OpenSSH style "randomart" images based on key fingerprints.

Documentation

http://godoc.org/github.com/calmh/randomart

Example

data := []byte{ 0x9b, 0x4c, 0x7b, 0xce, 0x7a, 0xbd, 0x0a, 0x13,
                0x61, 0xfb, 0x17, 0xc2, 0x06, 0x12, 0x0c, 0xed }
ra := randomart.Generate(data, "RSA 2048")
fmt.Println(ra)
+--[ RSA 2048 ]---+
|    .+.          |
|      o.         |
|     .. +        |
|      Eo =       |
|        S + .    |
|       o B . .   |
|        B o..    |
|         *...    |
|        .o+...   |
+-----------------+

License

MIT