{"id":13693680,"url":"https://github.com/speps/go-hashids","last_synced_at":"2025-04-11T03:27:54.232Z","repository":{"id":4766328,"uuid":"5917186","full_name":"speps/go-hashids","owner":"speps","description":"Go (golang) implementation of http://www.hashids.org","archived":false,"fork":false,"pushed_at":"2022-06-24T11:49:40.000Z","size":56,"stargazers_count":1339,"open_issues_count":9,"forks_count":110,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-04-03T18:09:46.216Z","etag":null,"topics":["golang","hashids"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/speps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-09-22T21:46:39.000Z","updated_at":"2025-03-27T07:12:47.000Z","dependencies_parsed_at":"2022-07-12T19:40:32.018Z","dependency_job_id":null,"html_url":"https://github.com/speps/go-hashids","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speps%2Fgo-hashids","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speps%2Fgo-hashids/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speps%2Fgo-hashids/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speps%2Fgo-hashids/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/speps","download_url":"https://codeload.github.com/speps/go-hashids/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248335035,"owners_count":21086496,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","hashids"],"created_at":"2024-08-02T17:01:15.333Z","updated_at":"2025-04-11T03:27:54.210Z","avatar_url":"https://github.com/speps.png","language":"Go","funding_links":[],"categories":["开源类库","Open source library"],"sub_categories":["文本处理","Word Processing"],"readme":"\n\ngo-hashids [![Build Status](https://ci.appveyor.com/api/projects/status/1s8yeafycpa2vdaq?svg=true)](https://ci.appveyor.com/project/speps/go-hashids) [![GoDoc](https://godoc.org/github.com/speps/go-hashids?status.svg)](https://godoc.org/github.com/speps/go-hashids)\n==========\n\nGo (golang) v1 implementation of http://www.hashids.org\nunder MIT License (same as the original implementations)\n\nOriginal implementations by [Ivan Akimov](https://github.com/ivanakimov)\n\n### Setup\n\u003cpre\u003ego get github.com/speps/go-hashids/v2\u003c/pre\u003e\n\nCLI tool :\n\n\u003cpre\u003ego get github.com/speps/go-hashids/v2/cmd/hashid\u003c/pre\u003e\n\n### Example\n```go\npackage main\n\nimport \"fmt\"\nimport \"github.com/speps/go-hashids/v2\"\n\nfunc main() {\n\thd := hashids.NewData()\n\thd.Salt = \"this is my salt\"\n\thd.MinLength = 30\n\th, _ := hashids.NewWithData(hd)\n\te, _ := h.Encode([]int{45, 434, 1313, 99})\n\tfmt.Println(e)\n\td, _ := h.DecodeWithError(e)\n\tfmt.Println(d)\n}\n```\n\n### Thanks to all the contributors\n\n* [Harm Aarts](https://github.com/haarts)\n* [Christoffer G. Thomsen](https://github.com/cgt)\n* [Peter Hellberg](https://github.com/peterhellberg)\n* [Rémy Oudompheng](https://github.com/remyoudompheng)\n* [Mart Roosmaa](https://github.com/roosmaa)\n* [Jakub Kramarz](https://github.com/jkramarz)\n* [Zou Xifeng](https://github.com/zouxifeng)\n* [Per Persson](https://github.com/md2perpe)\n* [Baiju Muthukadan](https://github.com/baijum)\n* [Pablo de la Concepción Sanz](https://github.com/pconcepcion)\n* [Olivier Mengué](https://github.com/dolmen)\n* [Matthew Valimaki](https://github.com/matthewvalimaki)\n* [Cody Maloney](https://github.com/cmaloney)\n\nLet me know if I forgot anyone of course.\n\n### Changelog\n\n2021/05/04\n\n* v2.0.1 - Added module support with /v2 suffix\n\n2017/05/09\n\n* Changed API\n\t* `New` methods now return errors\n\t* Added sanity check in `Decode` that makes sure that the salt is consistent\n\n2014/09/13\n\n* Updated to Hashids v1.0.0 (should be compatible with other implementations, let me know if not, was checked against the Javascript version)\n* Changed API\n\t* Encrypt/Decrypt are now Encode/Decode\n\t* HashID is now constructed from HashIDData containing alphabet, salt and minimum length\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspeps%2Fgo-hashids","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspeps%2Fgo-hashids","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspeps%2Fgo-hashids/lists"}