Create pw randomly use binary file source
Was thinking of commandline way create pw randomly ussing file as source of chars instead of other random source.
Code:
#!/bin/bash |
Is this an equivalent of what you seek ?
Code:
dinner@half_past_six:/tmp$ gpg --gen-random --armor 2 20 |
A password generator need to have some input parameters, like length. See for example this: https://www.lastpass.com/features/password-generator or https://www.avast.com/random-password-generator#mac
Using a file is not really safe, depends on the file itself. Not suggested. |
Quote:
But it depends on the uses, too. I do not carry around key-files but much of the discussion on the GnuPG mailing list is about cards. People appear to need key-files. |
Quote:
Since people posted other methods, here is another :) Code:
tr -cd "[:print:]" < /dev/urandom | fold -w 16 | sed 10q |
I frankly don't like "random passwords," because inevitably you put them into some kind of "keychain" which can be compromised.
To properly protect a remote system, put OpenVPN as the "outer moat," using unique digital certificates. (Also, use "tls-auth" or its equivalent.) Authorized users can cross the (hidden ...) drawbridge just by clicking an icon at the top of the screen, whereas everyone else is utterly locked-out. Furthermore, certificates can be individually "revoked" – say if a laptop gets stolen or someone leaves the company. (They can also be "password-protected," which encrypts their content.) If, and only if, you pass over the drawbridge can you come to the (ssh ...) "portcullis" and thereby enter the castle. |
Quote:
I need to log in almost everywhere, including google, facebook, netflix, LQ, github, webshops, banks, package delivery companies, ... and I cannot rule them (to really protect me). OpenVPN cannot help on this, certificates cannot help on this. They can only protect the line, but not the thing at the other end of the line. |
The only way that random passwords could – in my opinion – be hypothetically useful, to some extend, is to not memorize, copy or send them, then to ensure they will be destroyed on the slightest suspicion of an attack. Even waterboarding would not suffice to get the password.
I hope that not one of us is in a situation that justified anything close to this. ;) Else, get out and do not bother with passwords in the first place. |
All times are GMT -5. The time now is 07:31 AM. |