{"id":153,"date":"2011-05-05T11:48:58","date_gmt":"2011-05-05T17:48:58","guid":{"rendered":"http:\/\/mattdturner.com\/wordpress\/?p=153"},"modified":"2011-10-24T06:26:41","modified_gmt":"2011-10-24T12:26:41","slug":"linux-command-line-password-generator","status":"publish","type":"post","link":"https:\/\/mattdturner.com\/wordpress\/2011\/05\/linux-command-line-password-generator\/","title":{"rendered":"Linux Command Line Password Generator"},"content":{"rendered":"<p><a href=\"http:\/\/mattdturner.com\/wordpress\/wp-content\/uploads\/2011\/05\/sec.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-155\" title=\"sec\" src=\"http:\/\/mattdturner.com\/wordpress\/wp-content\/uploads\/2011\/05\/sec.jpg\" alt=\"Computer Security Key\" width=\"320\" height=\"212\" srcset=\"https:\/\/mattdturner.com\/wordpress\/wp-content\/uploads\/2011\/05\/sec.jpg 400w, https:\/\/mattdturner.com\/wordpress\/wp-content\/uploads\/2011\/05\/sec-300x198.jpg 300w\" sizes=\"(max-width: 320px) 100vw, 320px\" \/><\/a>I have access to a few servers\/super computers that require me to change my password every 30 days. \u00a0In addition to this, after using a password I have to wait 6 months before being allowed to reuse it and new passwords cannot be similar to old password.<\/p>\n<p>This can be rather annoying, as I have only 3 passwords that I have memorized (with varying levels of strength). \u00a0Whenever I am asked for a new password, I cannot just sit there and think up one; I have to use a random password generator and then I can finally relax and surf sites like <a href=\"http:\/\/www.o2.co.uk\/\">O2.co.uk<\/a> or my e-mails.<\/p>\n<p>From the linux command line, it is rather easy to generate a password. \u00a0I use the following command in my .cshrc file:<\/p>\n<p><!--more--><\/p>\n<pre class=\"brush: plain; light: true; title: ; notranslate\" title=\"\">alias gen_pass = &quot;openssl rand -base64 \\!:1&quot;<\/pre>\n<p>The command is simple to use, just type &#8216;gen_pass&#8217;\u00a0followed by the length desired. \u00a0Example:<\/p>\n<pre class=\"brush: plain; light: true; title: ; notranslate\" title=\"\">mturner@prospero:gen_pass 16\r\nBT5g0agBcMF4jXsbjaBdrg==\r\nmturner@prospero:gen_pass 12\r\nsW9V1nehfXFzCgwL\r\nmturner@prospero:gen_pass 8\r\nVnsg8qne\/j8=<\/pre>\n<p>As you can see, the password that is generated CAN contain uppercase letters, lowercase letters, numbers, and symbols. \u00a0There are other methods of generating passwords from the command line, however this is a rather simple command that doesn&#8217;t rely on the algorithm that is used for \/dev\/random.<\/p>\n<div class=\"zemanta-pixie\" style=\"margin-top: 10px; height: 15px;\"><a class=\"zemanta-pixie-a\" title=\"Enhanced by Zemanta\" href=\"http:\/\/www.zemanta.com\/\"><img decoding=\"async\" class=\"zemanta-pixie-img\" style=\"border: none; float: right;\" src=\"http:\/\/img.zemanta.com\/zemified_e.png?x-id=47c2e7cc-1ea1-4f72-a3e7-d62e80cad9b2\" alt=\"Enhanced by Zemanta\" \/><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>I have access to a few servers\/super computers that require me to change my password every 30 days. \u00a0In addition to this, after using a password I have to wait 6 months before being allowed to reuse it and new passwords cannot be similar to old password. This can be rather annoying, as I have [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[3,125],"tags":[62,50,129,104,134,133,131,254,132,130],"class_list":["post-153","post","type-post","status-publish","format-standard","hentry","category-command-line","category-security","tag-command-line-interface","tag-linux","tag-lower-case","tag-password","tag-password-generator","tag-password-recovery","tag-password-tools","tag-security","tag-shareware","tag-windows","no-thumb"],"_links":{"self":[{"href":"https:\/\/mattdturner.com\/wordpress\/wp-json\/wp\/v2\/posts\/153"}],"collection":[{"href":"https:\/\/mattdturner.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mattdturner.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mattdturner.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mattdturner.com\/wordpress\/wp-json\/wp\/v2\/comments?post=153"}],"version-history":[{"count":14,"href":"https:\/\/mattdturner.com\/wordpress\/wp-json\/wp\/v2\/posts\/153\/revisions"}],"predecessor-version":[{"id":288,"href":"https:\/\/mattdturner.com\/wordpress\/wp-json\/wp\/v2\/posts\/153\/revisions\/288"}],"wp:attachment":[{"href":"https:\/\/mattdturner.com\/wordpress\/wp-json\/wp\/v2\/media?parent=153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mattdturner.com\/wordpress\/wp-json\/wp\/v2\/categories?post=153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mattdturner.com\/wordpress\/wp-json\/wp\/v2\/tags?post=153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}