Skip to content

Password generator for public links uses pseudo-random number generator #10461

@felix-schwarz

Description

@felix-schwarz

Describe the bug

The password generator for public links is https://www.npmjs.com/package/js-generate-password, hosted on GitHub as https://github.com/ahmadjoya/generate-password-lite .

Unfortunately it uses only Math.random() to pick the characters and shuffle them around:

As Math.random() only generates pseudo-random numbers, at least in theory the number of passwords that library can generate for a given length and set of criteria is only a subset of what is theoretically possible, with the potential for the same password to be generated more than once.

Suggested fix

Metadata

Metadata

Assignees

Labels

Web-onlyIssue without backend dependecies

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions