pypasswordgenerator/bash_random.sh

9 lines
282 B
Bash
Executable File

#!/bin/bash
#=======================================
# Password generator with login option
#=======================================
for i in {1..5}; do (tr -cd '[:alnum:][:punct:][:alnum:]' < /dev/urandom | fold -w24 | head -n 1); done
# Print the strings
printf "$pass_output\n"