
{"id":1374,"date":"2010-04-20T21:33:49","date_gmt":"2010-04-20T16:03:49","guid":{"rendered":"http:\/\/www.jeffrin.in\/?p=1374"},"modified":"2010-04-20T21:33:49","modified_gmt":"2010-04-20T16:03:49","slug":"generating-random-passwords","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2010\/04\/20\/generating-random-passwords\/","title":{"rendered":"generating random passwords."},"content":{"rendered":"<p>makepass.py<\/p>\n<pre class=\"brush:python\">\nfrom random import choice\nimport string\ndef GenPasswd(length=8, chars=string.letters+string.digits):\n    return ''.join([ choice(chars) for i in range(length) ])\n<\/pre>\n<pre class=\"brush:bash\">\nahiliation:~$python\nPython 2.5.5 (r255:77872, Mar 20 2010, 05:19:32)\n[GCC 4.4.3] on linux2\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n&gt;&gt;&gt; import makepass\n&gt;&gt;&gt; for i in range(6):\n...    print makepass.GenPasswd(12)\n...\nBSxqLK9mpq4R\nFRlppP7K2Che\nYBkz0QZMJojC\nJjTQlcHzDsC3\nWMD5BfRcyTEk\nquO9nlBirm2U\n&gt;&gt;&gt;\n<\/pre>\n<p>Credit : Devin Leung.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>makepass.py from random import choice import string def GenPasswd(length=8, chars=string.letters+string.digits): return &#8221;.join([ choice(chars) for i in range(length) ]) ahiliation:~$python Python 2.5.5 (r255:77872, Mar 20 2010, 05:19:32) [GCC 4.4.3] on linux2 Type &#8220;help&#8221;, &#8220;copyright&#8221;, &#8220;credits&#8221; or &#8220;license&#8221; for more information. &gt;&gt;&gt; import makepass &gt;&gt;&gt; for i in range(6): &#8230; print makepass.GenPasswd(12) &#8230; BSxqLK9mpq4R FRlppP7K2Che YBkz0QZMJojC JjTQlcHzDsC3 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2010\/04\/20\/generating-random-passwords\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;generating random passwords.&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":1768,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[1237,1332],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/1374"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=1374"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/1374\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media\/1768"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=1374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=1374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=1374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}