Last active
November 20, 2015 13:17
-
-
Save Orestad/7894e714c27b56f0b6a2 to your computer and use it in GitHub Desktop.
Password generator - just input word list. Usage (in Swedish): http://orestad-linux.se/?p=600
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Simple password generator | |
# Written by daemonicus666 | |
########################### | |
mydict=(`cat wordlist`) | |
N=$1 | |
echo "" | |
echo "Your new password is:" | |
for index in `shuf --input-range=0-$(( ${#mydict[*]} - 1 )) | head -${N}`; | |
do | |
printf "${mydict[$index]}" | |
done | |
printf "\n" | |
printf "\n" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment