9

Making Better Passwords from /dev/urandom

 3 years ago
source link: https://fuzzyblog.io/blog/2019/09/18/making-better-passwords-from-dev-urandom.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Making Better Passwords from /dev/urandom

Sep 18, 2019

IMG_8962.jpeg

I recently wrote something about passwords and a comment showed up about how what I wrote wasn't secure enough and the password should really be based on /dev/urandom instead of what amounts to microtime. While I'm not terribly concerned here, they were right so here's an alternative:

cat /dev/urandom | base64 | head -c 12

That will return a 12 character password. Adjust the 12 to 8 if that's what you need for length.

I pulled this technique from Stack Overflow.


Posted In: #linux #password #security


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK