Skip to content

dohnto/goidenticon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goidenticon

goidenticon is a simple command line utility to generate identicon from an arbitrary input.

Identicon is a visual representation of a hash value, commonly used to visualize IP addresses or user avatars. This implementation provides so far only single hash decoder and it uses only different colors to visualize the hash.

Examples

Sample icons generated for different usernames

echo Antonette | goidenticon -out doc/images/Antonette.png

Antonette

echo Glen | goidenticon -out doc/images/Glen.png

Glen

echo Willy | goidenticon -out doc/images/Willy.png

Willy

Installation

go get github.com/dohnto/goidenticon/...

Usage

# goidenticon -help
Usage of goidenticon:
  -in string
    	File path to read input from, if not passed or empty, stdin is used
  -log-level value
    	File path to a result image
  -out string
    	File path to a result image (default "identicon.png")
  -size int
    	Size of a square image in pixels (default 300)

About

Go implementation of identicons

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages