{"id":15099921,"url":"https://github.com/x13a/b2pw","last_synced_at":"2025-10-08T05:31:17.749Z","repository":{"id":113482206,"uuid":"432370484","full_name":"x13a/b2pw","owner":"x13a","description":"Convert bytes to password.","archived":true,"fork":false,"pushed_at":"2021-12-24T21:26:55.000Z","size":22,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-26T08:32:06.300Z","etag":null,"topics":["zig","zig-lang"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/x13a.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},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["https://x13a.github.io/donate/"]}},"created_at":"2021-11-27T04:48:45.000Z","updated_at":"2024-03-08T02:50:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"7b9a71da-f643-402f-8a92-bbf130b3c92c","html_url":"https://github.com/x13a/b2pw","commit_stats":{"total_commits":10,"total_committers":2,"mean_commits":5.0,"dds":0.4,"last_synced_commit":"f079a48a73f4148139db5d114b6e97ba0ab4af19"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/x13a/b2pw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x13a%2Fb2pw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x13a%2Fb2pw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x13a%2Fb2pw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x13a%2Fb2pw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/x13a","download_url":"https://codeload.github.com/x13a/b2pw/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x13a%2Fb2pw/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278892120,"owners_count":26063933,"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-08T02:00:06.501Z","response_time":56,"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":["zig","zig-lang"],"created_at":"2024-09-25T17:41:16.307Z","updated_at":"2025-10-08T05:31:17.446Z","avatar_url":"https://github.com/x13a.png","language":"Zig","funding_links":["https://x13a.github.io/donate/"],"categories":[],"sub_categories":[],"readme":"# b2pw\n\nConvert bytes to password.\n\nMain purpose is to convert files to passwords. You can take any file and convert it \nto password up to 64 chars long. First we make hash of it using `blake2b`, than\nmap each result byte to our alphabet. On the same file you always get the same password.\n\n## Installation\n\n```sh\n$ make\n$ make install\n```\nor\n```sh\n$ brew tap x13a/tap\n$ brew install x13a/tap/b2pw\n```\n\n## Usage\n\n```text\nb2pw [-hV] [-l NUM] [-a STR] [-k STR] [-c STR] [-n NUM]\n\n[-h] * Print help and exit\n[-V] * Print version and exit\n\n[-l] * Length of password (default: 32)\n[-a] * Alphabet (default: abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789)\n[-k] * Key (default: null)\n[-c] * Additional chars (default: \"\")\n[-n] * Number of bytes to read (default: 0 = all)\n```\n\n## Example\n\n```sh\n~\n❯ echo -n \"test1\" | b2pw\nRQ3sDNrPzzkiVLYsqRzsnQTkgbK4cm0U\n~\n❯ echo -n \"test1\" | b2pw\nRQ3sDNrPzzkiVLYsqRzsnQTkgbK4cm0U\n~\n❯ echo -n \"test2\" | b2pw\nKS4qquoEFhN4XJiECDcQZxJXca6ZrKCN\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx13a%2Fb2pw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx13a%2Fb2pw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx13a%2Fb2pw/lists"}