Skip to content

Godenticon generates identicons based on the hash of provided data

License

Notifications You must be signed in to change notification settings

faroyam/godenticon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Godenticon

Godenticon is a tiny package that generates identicons based on the hash of provided data. It is inspired by Pydenticon

Example

// Calculate MD5 checksum of the data
hash := md5.Sum([]byte("Gopher!"))

// Create an image using hash and slice of colours 
img, _ := g.GenarateImage(hash, g.ColorGopher)

// Create a new file to be written down a specified path 
f, _ := os.Create("image.png")

// Write image into a file
g.SaveImage(img, f)

It will output image:

Gopher!

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Godenticon generates identicons based on the hash of provided data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages