Why Nostr? What is Njump?
2024-07-26 00:06:39

Aaron Toponce ⚛️:debian: on Nostr: I've audited a lot of password generators. One thing I see come up occasionally is ...

I've audited a lot of password generators. One thing I see come up occasionally is shuffling the source characters or word list before using a CSPRNG to pick one at random.

For example, something like (pseudocode):

chars = digits + lower + upper + symbols
chars.shuffle()
chars[rng.randint(0, chars.length - 1)]

Shuffling the source character set doesn't increase the entropy of the generation process.

A CSPRNG picking from an ordered list is just as random as one picking from a shuffled list.
Author Public Key
npub1t9cz9v7zph5jvadd8rjfp25msrx6r0hdxnsyfmx88k8qp3pvv04szt8529