{"id":32282941,"url":"https://github.com/stevesea/dart_wordlists","last_synced_at":"2026-02-21T07:03:08.234Z","repository":{"id":56827780,"uuid":"112987537","full_name":"stevesea/dart_wordlists","owner":"stevesea","description":"passphrase wordlists and parsers / utilities for loading the word lists","archived":false,"fork":false,"pushed_at":"2022-10-15T10:42:09.000Z","size":251,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-23T01:30:01.264Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"AGS Script","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/stevesea.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-04T02:58:32.000Z","updated_at":"2022-10-15T10:42:37.000Z","dependencies_parsed_at":"2022-08-28T21:10:51.278Z","dependency_job_id":null,"html_url":"https://github.com/stevesea/dart_wordlists","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stevesea/dart_wordlists","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevesea%2Fdart_wordlists","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevesea%2Fdart_wordlists/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevesea%2Fdart_wordlists/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevesea%2Fdart_wordlists/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stevesea","download_url":"https://codeload.github.com/stevesea/dart_wordlists/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevesea%2Fdart_wordlists/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29675924,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T06:23:40.028Z","status":"ssl_error","status_checked_at":"2026-02-21T06:23:39.222Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":"2025-10-23T01:09:06.338Z","updated_at":"2026-02-21T07:03:08.229Z","avatar_url":"https://github.com/stevesea.png","language":"AGS Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dart_wordlists\n[![Pub Package](https://img.shields.io/pub/v/dart_wordlists.svg)](https://pub.dartlang.org/packages/dart_wordlists)\n[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](CODE_OF_CONDUCT.md)\n\nA library for passphrase word lists. Inspired by Diceware and others\n\n## Usage\n\n### generate pgp mnemonic from byte array\n\n```dart\nimport 'package:dart_wordlists/dart_wordlists.dart';\n\nmain(List\u003cString\u003e arguments) async {\n  PgpMnemonic pgpWords = new PgpMnemonic();\n  await pgpWords.init();\n\n  if (arguments.isEmpty) {\n    print(\"You must supply a hex string (whitespace separation a-ok!)\");\n  } else {\n    print(pgpWords.toPhraseFromHex(arguments.join(' ')).join(' '));\n  }\n}\n```\nrunning the example:\n```console\nfoo@bar$ pub run example/pgp_words.dart a2b4 ff5a 21a9\nrebirth politeness Zulu existence blackjack passenger\n\nfoo@bar$ pub run example/pgp_unwords.dart rebirth politeness Zulu existence blackjack passenger\na2b4ff5a21a9\n```\n\n\n### word list selection w/ collection sampler\n\nA simple usage example:\n\n```dart\nimport 'package:dart_wordlists/dart_wordlists.dart';\nimport 'package:dart_collection_sampler/dart_collection_sampler.dart';\n\nimport 'package:args/args.dart';\n\n\nmain(List\u003cString\u003e arguments) async {\n  var argParser = new ArgParser()\n    ..addOption(\"num\", abbr: \"n\",\n        help: \"items to pick from rest of command line\",\n        defaultsTo: \"6\");\n\n  var results = argParser.parse(arguments);\n\n  sample(int.parse(results[\"num\"]));\n}\n\nsample(int sampleSize) async {\n  var loader = new WordlistLoader();\n\n  var sampler = new CollectionSampler();\n\n  var wordlists = [\n    Wordlist.bip39_en,\n    Wordlist.bip39_zh_CW,\n    Wordlist.diceware_beale_en,\n    Wordlist.eff_large_en\n  ];\n  for (final wl in wordlists) {\n    var meta = loader.findMetadata(wl);\n    print(loader.findMetadata(wl));\n\n    var words = await loader.findLoader(wl).load();\n    print(words);\n\n    print (\"sample: ${sampler.pickN(words, sampleSize)}\");\n    print (\"\\n\");\n  }\n}\n```\n\n\n\n## Features and bugs\n\nPlease file feature requests and bugs at the [issue tracker][tracker].\n\n[tracker]: https://github.com/stevesea/dart_wordlists/issues\n\n## Similar projects\n\n## Credits\n\n\n### Diceware\n\ndiceware is a concept invented by Arnold G. Reinhold, Cambridge, Massachusetts\nUSA.\n\nThe English Diceware Wordlists used with this programme are licensed\nby Arnold G. Reinhold (files ``wordlists/wordlist_en_orig.asc``,\n``wordlists/wordlist_en.txt``) under the `Creative Commons CC-BY 3.0`\nlicense (see http://creativecommons.org/licenses/by/3.0/).\n\n\"Diceware\" is a trademark of A G Reinhold.\n\n### EFF\n\nThe EFF wordlist (file ``wordlsts/wordlist_en_eff.txt``) is licensed\nby the Electronic Frontier Foundation under the `Creative Commons\nCC-BY 3.0 US` license (see\nhttps://creativecommons.org/licenses/by/3.0/us/).\n\nSee [EFF's New Wordlists for Random Passphrases](https://www.eff.org/deeplinks/2016/07/new-wordlists-random-passphrases)\n\n\n### BIP39\n\nSee [BIP39](https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevesea%2Fdart_wordlists","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevesea%2Fdart_wordlists","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevesea%2Fdart_wordlists/lists"}