A port of GitHub’s identicon algorithm to Go, based on the Rust implementation (licensed under the MIT License).


To Build

To build the binary, run:

go build ./cmd/identicon

To Use

To generate the identicon for your GitHub account, run:

echo -n <your-user-id> | /path/to/identicon > /path/to/output.png

You may check out your GitHub user ID at<your-username>. Verify that you get the same result as from<your-username>.png.

To generate a random identicon, simply pass in any random input to the program.


Copyright (c) 2022 Zhong Ruoyu. Licensed under the MIT License.


View Github