Skip to content

Alphanumeric, but for passphrases #1025

@qrnch-jan

Description

@qrnch-jan

I'm generating random strings using:

      let r = rand::thread_rng()
        .sample_iter(&Alphanumeric)
        .take(32)
        .collect::<String>();

This works fine, but I recently had to generate passphrases and print them out to paper. It would have been nice to have an alternative to Alphanumeric for generating passphrases that avoids known-to-be-troublesome-in-printed-passphrases characters, like: 1, l, I and 0, O.

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