{"id":52323,"library":"speps-go-hashids","title":"go-hashids","description":"Package hashids generates short, unique, non-sequential ids from numbers using the Hashids algorithm.","status":"active","version":"2.0.0+incompatible","language":"go","source_language":null,"source_url":"https://github.com/speps/go-hashids","tags":["hashids","encoding","obfuscation","ids"],"install":[{"cmd":"go get github.com/speps/go-hashids","lang":"bash","label":"Install github.com/speps/go-hashids"}],"dependencies":[],"imports":[{"symbol":"hashids","correct":"github.com/speps/go-hashids"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/speps/go-hashids\"\n)\n\nfunc main() {\n\thd := hashids.NewData()\n\thd.Salt = \"my salt\"\n\th, _ := hashids.NewWithData(hd)\n\tid, _ := h.Encode([]int{1, 2, 3})\n\tfmt.Println(id)\n}","lang":"go","description":"Encode a list of integers into a Hashid string."},"warnings":[{"fix":"Use hashids.NewWithData(hashids.NewData()) instead of hashids.New() if migrating from v1.","message":"Version 2.0.0+incompatible uses a different API than v1; the NewWithData function replaces the old constructor.","severity":"breaking","affected_versions":">=2.0.0"}],"env_vars":null,"search_vec":"'algorithm':18 'encod':20 'generat':6 'go':2 'go-hashid':1 'hashid':3,5,17,19 'id':12,22 'non':10 'non-sequenti':9 'number':14 'obfusc':21 'packag':4 'sequenti':11 'short':7 'uniqu':8 'use':15","created_at":"2026-06-15T06:50:13.268287+00:00","updated_at":"2026-06-15T06:50:13.268287+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/speps/go-hashids","github":"https://github.com/speps/go-hashids","docs":"https://pkg.go.dev/github.com/speps/go-hashids#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility","serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}