https://github.com/zhongruoyu/identicon
A port of GitHub's identicon algorithm to Go.
https://github.com/zhongruoyu/identicon
github identicon
Last synced: about 1 month ago
JSON representation
A port of GitHub's identicon algorithm to Go.
- Host: GitHub
- URL: https://github.com/zhongruoyu/identicon
- Owner: ZhongRuoyu
- License: mit
- Created: 2022-07-14T16:32:29.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-15T13:12:26.000Z (almost 4 years ago)
- Last Synced: 2025-01-06T08:18:09.271Z (over 1 year ago)
- Topics: github, identicon
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Identicon
A port of GitHub's [identicon](https://github.blog/2013-08-14-identicons/)
algorithm to Go, based on
[the Rust implementation](https://github.com/dgraham/identicon) (licensed
under the
[MIT License](https://github.com/dgraham/identicon/blob/master/LICENSE)).

## To Build
To build the binary, run:
```bash
go build ./cmd/identicon
```
## To Use
To generate the identicon for your GitHub account, run:
```bash
echo -n | /path/to/identicon > /path/to/output.png
```
You may check out your GitHub user ID at
`https://api.github.com/users/`. Verify that you get the same
result as from `https://github.com/identicons/.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](LICENSE).