The Most Active and Friendliest
Affiliate Marketing Community Online!

“Propeller”/  Direct Affiliate

Password generator script

Graybeard

Well-Known Member
OK I was bored ...

I am sure there are many web tools for this BUT
I always have a terminal open on my desktop
./passrds.sh is pretty fast to type or ^R ./pa will recall the command ;)

These days many want these anal password must include blablabla

Code:
#! /bin/bash
chars='^#$%&_+='
{ </dev/urandom LC_ALL=C grep -ao '[A-Za-z0-9]' \
        | head -n$((RANDOM % 4 + 5))
    echo ${chars:$((RANDOM % ${#chars})):2}   # Random special char.
} \
    | shuf \
    | tr -d '\n'
echo \n
#for x in {1..3} ; do mkpasswd  "secret phrase" | shasum -a 2 ;done

echo -n ${chars:$((RANDOM % ${#chars})):1}
cat /dev/urandom| tr -dc 'A-Z'|head -c 1
 mkpasswd  "my dog has fleas" | shasum -a 256| cut -c1-6
#change to your *secret phrase*#
cat /dev/urandom| tr -dc '0-9a-zA-Z#$%^&*+'|head -c 8
echo \n
barry@paragon-DS-7:~$ ./passrds.sh
cisAYs+=sn
+S4dd16a
JxKFG*jnn

extended output

barry@paragon-DS-7:~$ for n in {1..15}; do ./passrds.sh;done
6&_rnUL5n
_P5e2ea4
TzEiboj0n
c7PIKl^#2n
%Q26bc8f
U$ybzif5n
BIn&_15jn
#S26e53a
Ae9ryywtn
fvKp+=INn
#D340ad7
2QMTUV^Rn
7^#WNE2Qn
$Md04391
FsNuENIGn
uVG%&X7kn
&Fdd42b3
$1Gf+3yan
9^#jFZPOjn
&Mf544ec
Acw$7kRSn
epqeB_+on
+Pdfae65
H5xt2WqRn
#$Y3Obm8Msn
=X040fbf
uLNamcqUn
IWr7B9+=7n
^C0468fd
aWWOUNf$n
KBg%&M15Mn
#Ue46395
JQsW%Bokn
IBE%&ZEGn
^Rc8cec1
UZAdbVyan
TanK3^#Yv4n
&O1c1f47
MiCs08HVn
j=cbaIawn
+Rb41600
w9WL^8Tpn
TSNxV1A+=n
+N0e6fb4
Wjrc9UG%n
 
this is interesting too ...

barry@paragon-DS-7:~$ cat /dev/urandom| tr -dc '0-9a-zA-Z'|head -c 12; echo \n
oTX39mMkt3dFn

so you can type your passwords on POS mobile :D

barry@paragon-DS-7:~$ cat /dev/urandom| tr -dc '0-9a-z'|head -c 7; echo \n
tfb8rstn
if it is allowed blablabla :p
 
Last edited:
banners
Back