View Single Post
  #1   (View Single Post)  
Old 14th July 2014
rocket357's Avatar
rocket357 rocket357 is offline
Real Name: Jonathon
Wannabe OpenBSD porter
 
Join Date: Jun 2010
Location: 127.0.0.1
Posts: 429
Default 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.
Reply With Quote