GeneratorsLesson 44Free preview
Password Generator
This lesson is part of Web Developer Tools · All levels
Summary
Password Generator creates a random password based on the length and type of characters selected, such as uppercase, lowercase, number, and symbol. The longer the password and the more diverse the characters used, the higher the entropy or the degree of difficulty it is to guess. A good generator uses a cryptographic random source, not a Math.random. Each account should use a unique password, and the best storage is through a password manager.
Key points
- Length and character diversity determine password strength
- Entropy is measured in bits and the higher the better.
- Use a generator with a cryptographic random source (CSPRNG)
- Don't use a single password for multiple accounts
- Password managers help keep unique passwords safe
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.