{"id":18849131,"url":"https://github.com/gnlow/bitwise-shuffle","last_synced_at":"2025-10-06T04:24:50.297Z","repository":{"id":138830570,"uuid":"274411980","full_name":"gnlow/bitwise-shuffle","owner":"gnlow","description":"Bitwise shuffle for two-way hashing","archived":false,"fork":false,"pushed_at":"2020-06-24T01:42:05.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-30T01:51:28.633Z","etag":null,"topics":["bitwise","hash","random","shuffle"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/gnlow.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-23T13:23:52.000Z","updated_at":"2020-06-24T03:04:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"96e2495f-3fff-4199-bfce-4b0dc54e009f","html_url":"https://github.com/gnlow/bitwise-shuffle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gnlow/bitwise-shuffle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnlow%2Fbitwise-shuffle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnlow%2Fbitwise-shuffle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnlow%2Fbitwise-shuffle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnlow%2Fbitwise-shuffle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gnlow","download_url":"https://codeload.github.com/gnlow/bitwise-shuffle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnlow%2Fbitwise-shuffle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278557539,"owners_count":26006344,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bitwise","hash","random","shuffle"],"created_at":"2024-11-08T03:18:28.716Z","updated_at":"2025-10-06T04:24:50.283Z","avatar_url":"https://github.com/gnlow.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bitwise-shuffle\nBitwise shuffle for two-way hashing\n## Use (Deno)\n```ts\nimport {shuffle, unshuffle, random} from \"https://raw.githubusercontent.com/gnlow/bitwise-shuffle/master/mod.ts\"\n\nconst key = [2, 0, 1, 3]\nconst hash = shuffle(key)\nconsole.log(hash(0b1010)) // 6 = 0110(2)\n/* \ninput: 10 = 1010(2)\nkey:        2013\n            \\//|\n            //\\|\n            ||||\noutput: 6 = 0110(2)\n*/\n\nconst unhash = unshuffle(key)\nconsole.log(unhash(0b0110)) // 10 = 1010(2)\n\nconsole.log(random(4)) // (ex) [ 1, 0, 2, 3 ]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnlow%2Fbitwise-shuffle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgnlow%2Fbitwise-shuffle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnlow%2Fbitwise-shuffle/lists"}