speps/go-hashids
speps/go-hashids has 1,374 GitHub stars and 111 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-08 06:23 UTC. Last push 2022-06-24.
Go (golang) implementation of http://www.hashids.org
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalgo-hashids

Go (golang) v1 implementation of http://www.hashids.org under MIT License (same as the original implementations)
Original implementations by Ivan Akimov
Setup
go get github.com/speps/go-hashids/v2
CLI tool :
go get github.com/speps/go-hashids/v2/cmd/hashid
Example
package main
import "fmt"
import "github.com/speps/go-hashids/v2"
func main() {
hd := hashids.NewData()
hd.Salt = "this is my salt"
hd.MinLength = 30
h, _ := hashids.NewWithData(hd)
e, _ := h.Encode([]int{45, 434, 1313, 99})
fmt.Println(e)
d, _ := h.DecodeWithError(e)
fmt.Println(d)
}
Thanks to all the contributors
- Harm Aarts
- Christoffer G. Thomsen
- Peter Hellberg
- Rémy Oudompheng
- Mart Roosmaa
- Jakub Kramarz
- Zou Xifeng
- Per Persson
- Baiju Muthukadan
- Pablo de la Concepción Sanz
- Olivier Mengué
- Matthew Valimaki
- Cody Maloney
Let me know if I forgot anyone of course.
Changelog
2021/05/04
- v2.0.1 - Added module support with /v2 suffix
2017/05/09
- Changed API
Newmethods now return errors- Added sanity check in
Decodethat makes sure that the salt is consistent
2014/09/13
- Updated to Hashids v1.0.0 (should be compatible with other implementations, let me know if not, was checked against the Javascript version)
- Changed API
- Encrypt/Decrypt are now Encode/Decode
- HashID is now constructed from HashIDData containing alphabet, salt and minimum length
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,860 starspublic-apis/public-apis
A collective list of free APIs
497,105 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
441,773 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,164 stars