Random

random.bsh
urandom_password

Uses /dev/urandom to generate a random password

Arguments:
  • [$1] - Length of the generated password. Default: 20

  • [$2] - Set of character to use. Using tr syntax. Default: [:graph:]

Output:

stdout - Outputs the password, no newline added.

Note

Does not support unicode, uses iso-8859-1