{"id":8985,"date":"2022-05-16T12:49:55","date_gmt":"2022-05-16T17:49:55","guid":{"rendered":"https:\/\/www.rushworth.us\/lisa\/?p=8985"},"modified":"2022-05-16T12:55:37","modified_gmt":"2022-05-16T17:55:37","slug":"using-urandom-to-generate-password","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=8985","title":{"rendered":"Using urandom to Generate Password"},"content":{"rendered":"<p>Frequently, I&#8217;ll use password generator websites to create some pseudo-random string of characters for system accounts, database replication,etc. But sometimes the Internet isn&#8217;t readily available &#8230; and you can create a decent password right from the Linux command line using urandom.<\/p>\n<p>If you want pretty much any &#8220;normal&#8221; character, use tr to pull out all of the other characters:<\/p>\n<p><tt>'\\11\\12\\40-\\176'<\/tt><\/p>\n<p>Or remove anything outside of upper case, lower case, and number characters using<\/p>\n<p><tt>a-zA-Z0-9<\/tt><\/p>\n<p>Pass the output to head to grab however many characters you actually want. Voila &#8212; a quick password.<\/p>\n<p><a href=\"https:\/\/www.rushworth.us\/lisa\/?attachment_id=8986\" rel=\"attachment wp-att-8986\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8986\" src=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2022\/05\/urandom-pwd-generator.png\" alt=\"\" width=\"848\" height=\"106\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2022\/05\/urandom-pwd-generator.png 848w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2022\/05\/urandom-pwd-generator-300x38.png 300w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2022\/05\/urandom-pwd-generator-768x96.png 768w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2022\/05\/urandom-pwd-generator-750x94.png 750w\" sizes=\"auto, (max-width: 848px) 100vw, 848px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Frequently, I&#8217;ll use password generator websites to create some pseudo-random string of characters for system accounts, database replication,etc. But sometimes the Internet isn&#8217;t readily available &#8230; and you can create a decent password right from the Linux command line using urandom. If you want pretty much any &#8220;normal&#8221; character, use tr to pull out all &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[632,294,1633,1635,1634],"class_list":["post-8985","post","type-post","status-publish","format-standard","hentry","category-system-administration","tag-bash","tag-linux","tag-password","tag-password-generator","tag-passwords"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/8985","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8985"}],"version-history":[{"count":2,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/8985\/revisions"}],"predecessor-version":[{"id":8988,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/8985\/revisions\/8988"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8985"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8985"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8985"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}