Identicon

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

Identicons

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 https://api.github.com/users/<your-username>. Verify that you get the same result as from https://github.com/identicons/<your-username>.png.

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

License

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

GitHub

View Github