Random Password Generation
Hey gurus,
I have a question. This isn't so much a technical "how do I", as much as a poll-type "how do *you*" sort of question.
Here's the deal. I've used pwgen pretty heavily in the past, but as I dig deeper into the minimalist mindset and configuration I'd like to move further away from additional packages unless I just can't avoid it (i.e. use stuff in base as much as is feasible).
For instance, one could do:
dd if=/dev/urandom of=/dev/stdout bs=12 count=1 2>/dev/null | b64encode -
to generate a nice pseudorandom 16 character password. I know there are a multitude of ways to accomplish this, but I was curious what others were using.
Note, I'm not a huge fan of using `date` as "random" input, since it's effectively not terribly random (if you use second precision, you only have 86400 values you can choose from), so I'd like to stick to higher quality pseudorandom password generation.
Thoughts?
__________________
Linux/Network-Security Engineer by Profession. OpenBSD user by choice.
|