- Local time
- 21:35
- Joined
- Sep 24, 2019
- Messages
- 1,259
- Pronouns
- he/him
Close date: 3rd December 2019 12:00pm UTC
Code golf is a competition where the aim is to complete a task using the shortest possible source code. This challenge may be completed using vanilla JavaScript, PHP, Python or Ruby. 3rd-party dependencies are not allowed, standard libs are.
Submit your code below to solve the following problem:
- Create a password generator
- The password must contain exactly 16 characters, and the characters are limited to the following character classes:
a-z
,A-Z
,0-9
, and!#$%&()*+,-./:;<=>? @[]^_{|}~
(note there is a space character in this class). - The password must contain a character from each character class.
- Each character from all the character classes must have an equal chance of being picked.
- The password cannot have predictable patterns and must generate a new one each time it is run.
- The script must run from start to finish without any additional user input.
If anybody stumbles on this thread after we're done, please don't use any of these in real applications... 😆
Last edited: