{"id":19154702,"url":"https://github.com/rgrannell1/rpgen","last_synced_at":"2025-07-29T19:10:35.647Z","repository":{"id":42719524,"uuid":"49368134","full_name":"rgrannell1/rpgen","owner":"rgrannell1","description":"Generate memorable secure passwords.","archived":false,"fork":false,"pushed_at":"2023-07-22T14:00:14.000Z","size":854,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-17T10:06:16.685Z","etag":null,"topics":["dictionary","password","random","security"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/rgrannell1.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":"2016-01-10T13:36:01.000Z","updated_at":"2022-03-27T10:50:09.000Z","dependencies_parsed_at":"2024-11-09T08:28:51.495Z","dependency_job_id":"fa554247-7166-4a17-9422-c047e8e33800","html_url":"https://github.com/rgrannell1/rpgen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgrannell1%2Frpgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgrannell1%2Frpgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgrannell1%2Frpgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgrannell1%2Frpgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rgrannell1","download_url":"https://codeload.github.com/rgrannell1/rpgen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240238380,"owners_count":19769925,"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","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":["dictionary","password","random","security"],"created_at":"2024-11-09T08:27:59.249Z","updated_at":"2025-02-22T21:24:17.836Z","avatar_url":"https://github.com/rgrannell1.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Rpgen\n\nGenerate a high entropy, memorable password.\n\n## Usage\n\n```\n$ rpgen --help\n$ rpgen\n```\nThe output is of the format `\u003cpassword\u003e \u003cdictionaryEntropy\u003e \u003ccharacterEntropy\u003e`; see `Security` for notes on entropy.\n\n```\nstacking-patty-divergent-tiresome-deviants   80   199\n```\n### \"stacking-patty-divergent-tiresome-deviants isn't *that* memorable.\"\n\nIt's more memorable than `yIRXLbae6ixc0BXXtYxG`.\n\n## Security\n\n### Random Word Selection\n\nRandom words are selected using a cryptographically secure random number generator derived from\nNode.js's `crypto.randomBytes`. This generator is tested, as described below.\n\n### Entropy\n\nA password's information entropy quantifies its resistance to brute-force attacks. For example, it would take up to `2e80 ~ 1.2e+24` attempts to guess a password with `80` bits of entropy.\n\n```\nentropy = log2( number-of-possible-symbols ^ { number-of-symbols-used  } )\n```\n\nThe character entropy is the entropy of the password when a 'naive' attack is carried out; that is, if the password is 100 characters long the attacker is brute-forcing all combinations of 100 characters. This\nis a reasonable assumption for many brute-force attacks, especially if you use a private input dictionary rather\nthan the stock one supplied with this tool.\n\nThe second included entropy, the dictionary entropy, is the entropy of the password when each combination of words is brute-forced. This entropy will be much lower, but under this view the password should still be secure.\n\n## Testing\n\n### Random Bitmap Test\n\nrpgen passes the superficial but important \"random-bitmap\" test:\n\n![Random Data Bitmap](rand-image.png)\n\nfor comparison, PHPs `rand( )` does not\n\n![PHP Random Data](https://www.random.org/analysis/randbitmap-wamp-section.png)\n\n### Dieharder\n\nrpgen was also tested against 100,000,000 (1.1Gb) random integers.\n\n## Changelog\n\n### v0.4.0\n\n- Granted snapcraft access to home file reads, fixing some issues with custom rpgen dictionaries\n- Added many examples, as requested by a displeased user. Every operation `rpgen` can perform is now documented\n- Removed stdin support, since it didn't work with snapcraft and is essentially unneeded given file-parameter arguments\n\n### v0.3.0\n\n- Fixed support for standard input; running `rpgen -` now behaves as expected\n- Rpgen now uses a default english-langugage dictionary. Running `rpgen -g english` was not an intuitive workflow. Language patches are welcome to support other languages!\n\n## License\n\nThe MIT License\n\nCopyright (c) 2020 Róisín Grannell\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgrannell1%2Frpgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frgrannell1%2Frpgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgrannell1%2Frpgen/lists"}