Skip to content

Add new (and better) wordlists #6

Open

Description

@ulif

More wordlists

We would like to provide more wordlists.

Although users can use any wordlist they want::

  $ diceware mywordlist.txt
  $ cat /usr/share/dict/words | diceware -

we might offer some of them for convenience out-of-the-box. Typical candidates could be wordlists in other languages, the original 7776-terms wordlist from diceware.com, or others.

Register wordlists by name, not by language

As one can see from that list, it might not be convenient to offer/select wordlists by language as it is the case currently (yeah there is only one list built-in but we have a language selector at start).

Instead we could name each wordlist with arbitrary strings (something like "8k", "original", ...) and process these wordlist names in user interface.

The --help option should display all lists available (or we offer a special switch for that).

An uncomplete collection of possible wordlist types:

  • Language lists
  • Business lists:
    Lists that provide only terms suitable for little children. These lists could be used by services that
    generate passphrases for others and must make sure no one is offended by the words picked.
  • Other lists used for good reasons (like the original 7776 list)

Support GPG-signed wordlists

Something else regarding wordlists one could consider: the wordlist format expected currently, is a file (or file-like object) with lines. All non-empty lines are treated as a word. This makes it hard for GPG-signatures or similar data sources to be processed. Especially GPG-signed files could be interesting, because we could check authenticity of a wordlist when we use it.

Support dynamic wordlists

Static files are one possibility to create a wordlist. It should be possible to create wordlists also from dynamic sources on the fly (this might even improve entropy). In that case we would need a mechanism to hide the real format of a wordlist from the core components.

Instead we would need some piece of API that allows something like mygenerator = get_wordlist_generator(name) and then retrieves words from this generator piece by piece.

Collect wordlists from other packages by entry_points

A last thing we could support: third-party packages could provide their own wordlists for use with diceware. They might register their lists with some diceware component which, when called returns the lists. The registration and list lookup could again be done via entry points.

This last point is far from being urgent.

Activity

  1. ulif commented on Apr 13, 2016

    @ulif
    OwnerAuthor

    We need also wordlist for non-english users.

  2. reopened this on Apr 13, 2016
  3. htgoebel commented on Apr 29, 2019

    @htgoebel
    Contributor

    Maybe the trustwords list used by pEp is an option.
    https://tools.ietf.org/html/draft-birk-pep-trustwords-00
    https://pep.foundation/dev/repos/pEpEngine/file/tip/db

    Sadly Volker does not support putting the trustwarts into a repo of its own: "Everybody shall use the pEpEngine" :-(

  4. ulif commented on Aug 18, 2021

    @ulif
    OwnerAuthor

    So sorry, @htgoebel that I did not notice your hint before! These lists look really good, although they are not prefix codes. I will look deeper into them.

    The relevant CSV files can now be found on
    https://gitea.pep.foundation/pEp.foundation/pEpEngine/src/branch/master/db
    I guess.

    Thanks for the hint!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions