generate_good_password
This is an old revision of the document!
Generate good password
Usage : apg.sh 10 (generate 10 character password)
- | apg.sh
#!/bin/bash if [ $# -lt 1 ]; then echo "Usage : apg <lenght of password>" else for ((n=0;n<10;n++)); do dd if=/dev/urandom count=1 2> /dev/null | /usr/bin/gmime-uuencode -m -| sed -ne 2p | cut -c-$1; done fi
generate_good_password.1255128543.txt.gz · Last modified: 2020/08/10 02:30 (external edit)