I would like to generate a random password respecting the following format:
- at least one uppercase character
- at least one lowercase character
- at least one digit
- the length should be at least 6 characters
I thought about it and the only thing I could think of is some function that is quite long and ugly. Could you guys offer me a simpler, more efficient way of doing this?
PS: I'm using this function not on the client side, but on the server side, on my Node.js web application.