{"id":19602623,"url":"https://github.com/wang-bin/mkid","last_synced_at":"2026-04-17T18:01:07.137Z","repository":{"id":11555043,"uuid":"14041003","full_name":"wang-bin/mkid","owner":"wang-bin","description":"Generate a unique integer from characters at build time. A replacement of FourCC","archived":false,"fork":false,"pushed_at":"2014-12-08T15:59:50.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T15:45:49.087Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","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/wang-bin.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":"2013-11-01T10:51:15.000Z","updated_at":"2014-12-08T15:59:50.000Z","dependencies_parsed_at":"2022-09-23T23:51:24.210Z","dependency_job_id":null,"html_url":"https://github.com/wang-bin/mkid","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wang-bin/mkid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wang-bin%2Fmkid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wang-bin%2Fmkid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wang-bin%2Fmkid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wang-bin%2Fmkid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wang-bin","download_url":"https://codeload.github.com/wang-bin/mkid/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wang-bin%2Fmkid/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31939788,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2024-11-11T09:25:08.418Z","updated_at":"2026-04-17T18:01:07.106Z","avatar_url":"https://github.com/wang-bin.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"Generate a unique integer from characters at build time. A replacement of FourCC.\n\nSupports 0~6 characters as parameters.\n\n    #include \"mkid.h\"\n    #include \u003ciostream\u003e\n    using namespace std;\n    int main()\n    {\n        cout \u003c\u003c \"id32base64 for 'Hello': \" \u003c\u003c mkid::id32base64_5\u003c'H','e','l','l','o'\u003e::value \u003c\u003c endl;\n        cout \u003c\u003c \"id32base64 for 'MrWang': \" \u003c\u003c mkid::id32base36_6\u003c'M','r','W','a','n','g'\u003e::value \u003c\u003c endl;\n        cout \u003c\u003c \"FourCC for 'HEVC': \" \u003c\u003c mkid::fourcc\u003c'H','E','V','C'\u003e::value \u003c\u003c endl;\n        return 0;\n    }\n\n### Theorem 1\n\nGiven an integer `q`, any integer can be uniquely expressed as `x=a0+a1*q+a2*q^2+... +ak*q^k, ai,k is in N`\n\n### Thereom 2\n\nLet K(q) be the max value let polynomial expression be a 32 bit integer, then `K(256)\u003c=3` (FourCC), `K(64)\u003c=4` (id32base64_n, n\u003c=5) and `K(36)\u003c=5` (id32base36_n, n\u003c=6).\n\n### Proof\n\nObviously\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwang-bin%2Fmkid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwang-bin%2Fmkid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwang-bin%2Fmkid/lists"}