/password-generator

lightweight node tool to protect your ass

Primary LanguageJavaScript

Password Generator

Rules

  1. 12 characters long
  2. lower-case alphabet, upper-case, 0-9 numbers and punctuations
  3. each character is randomly generated

How to generate chars?

source

  • brute force (aka write them out)
    • complete strings (eg "abc...yz")
    • string arrays (eg ['a', 'b'...'z'])
      • would be v annoying to type out
    • separate categories vs all in one
  • ASCII/Unicode range

randomization

Math.floor(Math.random() * (max-min)) + min