{"id":17537547,"url":"https://github.com/zenhack/chpg","last_synced_at":"2025-07-24T18:11:20.378Z","repository":{"id":6466187,"uuid":"7706016","full_name":"zenhack/chpg","owner":"zenhack","description":"Correct Horse Password Generator","archived":false,"fork":false,"pushed_at":"2013-08-06T02:42:32.000Z","size":60,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-03T13:45:04.348Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/zenhack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-19T17:10:46.000Z","updated_at":"2020-05-26T08:02:32.000Z","dependencies_parsed_at":"2022-07-25T22:18:27.047Z","dependency_job_id":null,"html_url":"https://github.com/zenhack/chpg","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/zenhack%2Fchpg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenhack%2Fchpg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenhack%2Fchpg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenhack%2Fchpg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zenhack","download_url":"https://codeload.github.com/zenhack/chpg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246135739,"owners_count":20729056,"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":[],"created_at":"2024-10-20T20:42:09.776Z","updated_at":"2025-03-29T03:46:01.546Z","avatar_url":"https://github.com/zenhack.png","language":"Go","readme":"# Correct Horse Password Generator\n\n## Background Reading\n\n![http://xkcd.com/936/](http://imgs.xkcd.com/comics/password_strength.png\n\"To anyone who understands information theory and security and is in an infuriating argument with someone who does not (possibly involving mixed case), I sincerely apologize.\")\n\n([Source](http://xkcd.com/936/), in case anyone was unaware).\n\n## Why?\n\nBecause you are not a good enough random number generator for the above to be\nsafe. And because most of the password generators I've seen generate\n\"troubador\" passwords, or ones that are *harder* to remember.\n\n## What (not much)\n\nThis is just a simple password generator written in go - It generates\npasswords like the one praised in the comic.\n\n## Building \u0026 installing\n\n\tgo get github.com/zenhack/chpg\n\n## Running\n\n - Make sure $GOPATH/bin is in your $PATH\n - Make sure you have a valid dictionary at /usr/share/dict/words, and type: \n\n\tchpg\n\n - Or, make sure you have one /somewhere/else, and type:\n\n\tchpg -d /somewhere/else\n\n - This should work with windows style paths if you're using that, but I\n   haven't tried it.\n\n - The -n flag changes the number of words used in the password.\n\n## Notes\n\n - The dictionary should just be a newline-separated list of words. The file\n   should end with a newline.\n - Using a dictionary that's large enough is is important. The general\n   consensus is that Randall used a 2000-word dictionary in his calculations,\n   which is fairly small; most dictionaries intended for other uses will be\n   larger.\n - This uses the go standard library's cryptographic random number generator,\n   Which slows things down a bit (Just barely perceptible on my laptop), and\n   so this is probably not something you want to use in a performance sensitive\n   context.\n\n## License\n\nMIT. See COPYING.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenhack%2Fchpg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzenhack%2Fchpg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenhack%2Fchpg/lists"}