{"id":28228343,"url":"https://github.com/argosylabs/gubbins","last_synced_at":"2025-06-12T17:30:50.836Z","repository":{"id":57436300,"uuid":"212393263","full_name":"ArgosyLabs/gubbins","owner":"ArgosyLabs","description":"Gubbins product serial number generator \u0026 validator","archived":false,"fork":false,"pushed_at":"2020-06-01T23:08:31.000Z","size":15,"stargazers_count":3,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-31T16:35:45.716Z","etag":null,"topics":["cryptography","serial-numbers"],"latest_commit_sha":null,"homepage":"","language":"Python","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/ArgosyLabs.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":"2019-10-02T16:49:58.000Z","updated_at":"2023-06-27T06:40:33.000Z","dependencies_parsed_at":"2022-09-06T01:11:57.052Z","dependency_job_id":null,"html_url":"https://github.com/ArgosyLabs/gubbins","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ArgosyLabs/gubbins","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArgosyLabs%2Fgubbins","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArgosyLabs%2Fgubbins/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArgosyLabs%2Fgubbins/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArgosyLabs%2Fgubbins/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArgosyLabs","download_url":"https://codeload.github.com/ArgosyLabs/gubbins/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArgosyLabs%2Fgubbins/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259511979,"owners_count":22869321,"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":["cryptography","serial-numbers"],"created_at":"2025-05-18T14:09:51.258Z","updated_at":"2025-06-12T17:30:50.831Z","avatar_url":"https://github.com/ArgosyLabs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gubbins\nProduct serial number generator/validator\n======\n\nA simple but powerful product serial number generator and validator written\nin Python.  Given a Prefix and a 32-bit ID, produces a Serial.  Given a\nvalid Serial, returns the Prefix and 32-bit ID.  Optionally takes Additional\nData.\n\n```python\nfrom gubbins import Gubbins\n\nfor i in range(10):\n\tserial = Gubbins.generate(\"AX\", i)\n\tprefix, id = Gubbins.validate(serial)\n\tassert prefix.lower() == \"AX\".lower()\n\tassert id == i\n\tprint(i, serial)\n```\n\nor via the command-line,\n\n```bash\ngubbins 1-10 --solo --prefix AX | ungubbins\n```\n\nGubbins has several interesting features.  A Gubbins Serial\n* is human-friendly,\n* ignores case,\n* fixes up typos,\n* can be reversed,\n* contains a checksum,\n* avoids collisions, \u0026\n* attempts to prevent enumeration.\n\nModifying any of Prefix, ID, or Additional Data results in a different\nSerial.\n\nGubbins uses a lightly modified\n[z-base-32](https://philzimmermann.com/docs/human-oriented-base-32-encoding.txt)\nalphabet, with the letters `AJNRTUV` canonically upper-case and all other\nletters lower-case.  The validator will automatically fix up typos related\nto `oO0`, `iIlL1`, \u0026 `zZ2`.\n\nFor best results,\n* a Prefix can not contain the characters `-oOiIlLzZ`,\n* IDs should not be sequential, \u0026\n* Additional Data may depend on the Prefix but must not be derived from it.\n\nNote: we make no security claims about Gubbins. YMMV\n\nRequires\n* [more_itertools](https://github.com/erikrose/more-itertools),\n* [anybase32](https://github.com/alanblevins/anybase32), \u0026\n* [pynumparser](https://gitlab.com/n2vram/pynumparser).\n\nLicense: [MIT](https://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fargosylabs%2Fgubbins","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fargosylabs%2Fgubbins","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fargosylabs%2Fgubbins/lists"}