You are not logged in.
Pages: 1
Hi,
I wanted to share you something I've founded usefull:
Even we have to create safetly passwords for differents types of accounts or sessions..., and linux terminal can do it for you !
I made a mini-script that you can call in the terminal like that:
~/bin/creapwd.sh 32
make for you a password with 32 characters. Of course you can change the value you want.
That's it
creapwd.sh:
#!/bin/bash
# script to create pwd
##cat /dev/urandom|tr -dc _A-Z-a-z-0-9 |head -c60
# ex.: pwd with 32 characters: ~/bin/creapwd.sh 32
numcara=$1
tr -d -c "a-zA-Z0-9" < /dev/urandom | head -c "$numcara"
exit
Offline
Handy, thanks!
Offline
Great, works for me, thanks!
There is only one minor issue with the passwords created: It only has letters and numbers, but no special characters like !"§$%&=)(/ etc. - so it'd be easier for someone to make a brute-force attack (although over 20 characters are basically ok even without signs).
Offline
Great, works for me, thanks!
There is only one minor issue with the passwords created: It only has letters and numbers, but no special characters like !"§$%&=)(/ etc. - so it'd be easier for someone to make a brute-force attack (although over 20 characters are basically ok even without signs).
-y, --symbols
Include at least one special character in the password.
Offline
^ Other possibilities:
apt-cache policy makepasswd
makepasswd:
Installiert: (keine)
Installationskandidat: 1.10-9
Versionstabelle:
1.10-9 0
500 http://ftp.rrzn.uni-hannover.de/debian/debian/ jessie/main amd64 Packages
apt-cache policy apg
apg:
Installiert: (keine)
Installationskandidat: 2.2.3.dfsg.1-2
Versionstabelle:
2.2.3.dfsg.1-2 0
500 http://ftp.rrzn.uni-hannover.de/debian/debian/ jessie/main amd64 Packages
apt-cache policy gpw
gpw:
Installiert: (keine)
Installationskandidat: 0.0.19940601-8.1
Versionstabelle:
0.0.19940601-8.1 0
500 http://ftp.rrzn.uni-hannover.de/debian/debian/ jessie/main amd64 Packages
Offline
@porkpiehat Sorry, I was referring to the bash script in the OP, but it looked like I was talking about pwgen. Thank you for that link @earlybird, that looks like a very useful utility.
Offline
Pages: 1