{"id":19560108,"url":"https://github.com/plotdb/obfidx","last_synced_at":"2026-03-03T19:02:54.599Z","repository":{"id":79658046,"uuid":"453359465","full_name":"plotdb/obfidx","owner":"plotdb","description":"Obfuscator for 32 bit integer.","archived":false,"fork":false,"pushed_at":"2022-01-29T10:33:18.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-26T08:35:23.634Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"LiveScript","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/plotdb.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-29T09:59:28.000Z","updated_at":"2022-01-29T09:59:53.000Z","dependencies_parsed_at":"2023-05-14T07:00:16.665Z","dependency_job_id":null,"html_url":"https://github.com/plotdb/obfidx","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/plotdb/obfidx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotdb%2Fobfidx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotdb%2Fobfidx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotdb%2Fobfidx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotdb%2Fobfidx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plotdb","download_url":"https://codeload.github.com/plotdb/obfidx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotdb%2Fobfidx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30056056,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T18:21:05.932Z","status":"ssl_error","status_checked_at":"2026-03-03T18:20:59.341Z","response_time":61,"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":[],"created_at":"2024-11-11T05:05:59.166Z","updated_at":"2026-03-03T19:02:54.594Z","avatar_url":"https://github.com/plotdb.png","language":"LiveScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# obfidx\n\nObfuscator for 32 bit integer to a base-51 string.\n\nBased on a sample script from [Pseudo encrypt - Postgresql wiki](https://wiki.postgresql.org/wiki/Pseudo_encrypt), by Daniel Vérité and Jaka Jancar. The permutation property of this algorithm is a consequence of the function being a Feistel network; see [Feistel cipher](https://en.wikipedia.org/wiki/Feistel_cipher).\n\nThis function guarantees following property, within given range:\n\n - output is uniquely associated to its integer input \n - looks random\n - zero collision\n\nAdditionally, \n\n - it returns a signed integer (postgres doesn't have unsigned integers anyway).\n - it's a self-inverse, that is: pseudo_encrypt(pseudo_encrypt(X)) = X\n - the output may be customized by changing this function of r1\n\n## Usage\n\ninclude/require obfidx js and:\n\n    obfidx = obfidx a, b, c\n    obfuscated-number = obfidx original-number\n\nwhere `a`, `b` and `c` are some casual numbers used in following function:\n\n    f = ((a * R1 + b ) % c ) / c\n\nwhich guarantee a output value of `f(v)` in 0 ~ 1, and for any `x` = `y`, `f(x)` = `f(y)`.\n\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplotdb%2Fobfidx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplotdb%2Fobfidx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplotdb%2Fobfidx/lists"}