infra:random_passwords

Generate random passwords in linux

cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 10 | head -n 1

Or use a password generator pwgen

# Generate a single password of 8 characters using only alphanumeric characters
pwgen -1
# A whole list passwords using only alphanumeric characters
pwgen 10
# A whole list of password 10 characters long using all keyboard characters
pwgen -y 10
  • infra/random_passwords.txt
  • Last modified: 20/11/2021 20:00
  • by harm