Password generation with program from slackware 15
Is there a program in slackware 15.0 that I could use to generate 'safe' passwords from the commandline so that I can use it easily in scripts?
Firefox can ofcourse generate passwords, but I can't find any way to do this from the commandline. |
There are several ways to proceed
The simplest is to search on the web For example: https://www.howtogeek.com/30184/10-w...-command-line/ |
on slackbuilds.org there's pwgen that I use a lot at work: just install it from there then, for example, you can use the command
Code:
$ pwgen -sy 16 1 |
openssl rand -base64 <length>
|
If you are looking for a way to store your passwords securely there is https://www.passwordstore.org/
It will generate secure passwords and store them in it's database Code:
pass generate path/to/store/user 15 Code:
pass -c path/to/store/user |
This will work, just tweak to your liking
Code:
openssl rand -base64 12 | tr -dc 'a-zA-Z0-9' | cut -c1-16 |
Quote:
Code:
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 Code:
cat /dev/urandom | tr -dc 'a-zA-Z0-9\-_.#!' | fold -w 32 | head -n 1 |
If you really want to stay within what Slackware brings out of the box, there are two options right above. If SlackBuilds.org is within parameters, I like apg because it produces "pronouncable passwords".
|
Another out-of-the-box option is mkpasswd.expect (not to be confused with the mkpasswd from the whois package).
|
My preferred password vault it keepassxc. It has very configurable password generation capabilities and the database is portable.
It's at Slackbuilds.org. |
makepasswd -l 32 -c "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"
makepasswd comes from Code:
sudo $(which lwf_pkg-xattrs) $(which makepasswd) |
All times are GMT -5. The time now is 05:43 PM. |