Password generator
Solution
....- Generate a random password with n characters
- A password consists of approximately the same number of digits as letters:
- 8 characters = 4 letters + 4 digits
- 9 characters = 4 letters + 5 digits
- Each letter may occur only once, each digit may occur only twice
- To avoid confusion, do not use the letters o, O, l and the digits 0 and 1
- Show a
table
with 10 different passwords - Calculate for each password also a Bcrypt hash
- When the page is loaded, it generates 10 different passwords with 10 characters (the default). Use a GET or POST request (to the same page) when the form is submitted.