{"id":36464470,"url":"https://github.com/n2code/ndocid","last_synced_at":"2026-01-12T00:01:08.700Z","repository":{"id":57647873,"uuid":"213020784","full_name":"n2code/ndocid","owner":"n2code","description":"generator for human-writeable \u0026 human-typeable identifiers","archived":false,"fork":false,"pushed_at":"2021-06-23T13:51:02.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-09T09:58:37.993Z","etag":null,"topics":["command-line-tool","cross-platform","identifiers"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/n2code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-05T15:12:18.000Z","updated_at":"2021-06-23T13:51:05.000Z","dependencies_parsed_at":"2022-08-25T08:21:08.378Z","dependency_job_id":null,"html_url":"https://github.com/n2code/ndocid","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/n2code/ndocid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n2code%2Fndocid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n2code%2Fndocid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n2code%2Fndocid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n2code%2Fndocid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/n2code","download_url":"https://codeload.github.com/n2code/ndocid/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n2code%2Fndocid/sbom","scorecard":{"id":672061,"data":{"date":"2025-08-11","repo":{"name":"github.com/n2code/ndocid","commit":"bd4c4c6ae2b2f18bfbe090e9fdf2cf560cfc0b12"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/13 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.0.0 not signed: https://api.github.com/repos/n2code/ndocid/releases/45095612","Warn: release artifact v1.0.0 does not have provenance: https://api.github.com/repos/n2code/ndocid/releases/45095612"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T20:27:20.240Z","repository_id":57647873,"created_at":"2025-08-21T20:27:20.241Z","updated_at":"2025-08-21T20:27:20.241Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28328647,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T22:11:01.104Z","status":"ssl_error","status_checked_at":"2026-01-11T22:10:58.990Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["command-line-tool","cross-platform","identifiers"],"created_at":"2026-01-12T00:00:49.659Z","updated_at":"2026-01-12T00:01:08.694Z","avatar_url":"https://github.com/n2code.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ndocid\n\u003e *human-writeable \u0026 human-typeable identifiers*\n```console\n$ ndocid -n #Thu, 10 Oct 2019 01:41:40 +0200\n96822L9IPD\n```\nThis command-line tool generates an alphanumeric identifier for documents, records or anything, really, from a given point in time, number or a short bitstream (technically speaking: any 64 bit unsigned integer).\n\nThe input is encoded in an identifier which has many useful practical properties.\nIt is...\n* **unique \u0026 reversible** (because it is an encoding and _not_ a hash)\n* **robust**:\n  * only numbers and upper-case latin characters\n  * alphabet of 32 characters without `S/G/1/0` to avoid confusion with `5/6/I/O` in written form\n  * no leading zeros to prevent annoyance when working with spreadsheets, input forms etc.\n* **spread evenly**, i.e. when grouping generated identifiers according to their first 1/2/3/... characters you end up with buckets of roughly the same size\n* **input-friendly**:\n  * contains a checksum to detect typos\n  * early-match:tm: implementation possible for auto-completed and database-backed input forms\n    * ID starts with five digits so input with numpad is possibly sufficient (especially if the search space is small enough)\n    * checksum for partial identifier\n* as **short** as possible while retaining all features above\n  * 0  to 12 bit =\u003e 6 character ID (5 digits + 1 letter/digit)\n  * up to 17 bit =\u003e 7 character ID (5 digits + 2 letters/digits)\n  * up to 22 bit =\u003e 8 character ID (5 digits + 3 letters/digits)\n  * ...\n\n## Examples\n```console\n$ ndocid -i 123456789 #plain integer input\n674685WFX\n```\n```console\n$ ndocid -d 20191231223000 #new year's eve\n52598NV7RD\n```\n```console\n$ ndocid -b \"11010011 01000111\" #16 bit\n89273IF\n```\n\n## Usage\n**`ndocid`** `[-v]` `[MODE] INPUT`\n```console\n$ ndocid -h\nUsage of ./ndocid:\n  -b \"00010110 11011011\"\n    \tBITSTRING-MODE: Generate ID from string of bits, e.g. \"00010110 11011011\".\n    \t  Spaces, tabs, underscores and leading zeros are being dropped.\n    \t  The maximum length is 64 bits.\n    \t  Bad input will result in an exit code greater than 0.\n  -d 20060102150405\n    \tDATE-MODE: Generate ID from given date and time.\n    \t  For example 20060102150405 which represents \"Mon Jan 2 15:04:05 2006\".\n    \t  Evaluated in the machine's time zone.\n    \t  Exit code greater than 0 if the input is not according to format.\n  -i 42\n    \tINTEGER-MODE: Generate ID from number, e.g. 42.\n    \t  Accepts any positive decimal number that can fit in an unsigned 64 bit integer.\n    \t  Exit code greater than 0 if input exceeds range.\n  -n\tNOW-MODE: Generate ID from current date and time of this machine.\n  -r 72639D77LD\n    \tREVERSING/CHECK-MODE: Validates given ID, e.g. 72639D77LD.\n    \t  Exit code 0: Valid full ID\n    \t  Exit code 1: Invalid ID\n    \t  Exit code 4: Plausible partial ID (beginning), needs further digits\n    \t  The first line returned is OK / ERROR / PARTIAL for exit codes 0 / 1 / 4.\n  -v\tVerbose option: Generate more human-readable output.\n    \t  Explains algorithm in MODEs that generate IDs.\n    \t  Provides possible source representations when reversing is successful.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn2code%2Fndocid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fn2code%2Fndocid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn2code%2Fndocid/lists"}