<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sexy Sexy Penguins &#187; apg</title>
	<atom:link href="http://sexysexypenguins.com/tag/apg/feed/" rel="self" type="application/rss+xml" />
	<link>http://sexysexypenguins.com</link>
	<description>I love the smell of &#34;Free Software&#34; in the morning</description>
	<lastBuildDate>Thu, 26 Aug 2010 16:36:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>POW: apg, Automated Password Generator</title>
		<link>http://sexysexypenguins.com/2007/11/21/pow-apg-automated-password-generator/</link>
		<comments>http://sexysexypenguins.com/2007/11/21/pow-apg-automated-password-generator/#comments</comments>
		<pubDate>Wed, 21 Nov 2007 17:04:51 +0000</pubDate>
		<dc:creator>herlo</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Guru]]></category>
		<category><![CDATA[POW]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[apg]]></category>

		<guid isPermaLink="false">http://fedora-tutorials.com/2007/11/21/pow-apg-automated-password-generator/</guid>
		<description><![CDATA[This week&#8217;s program may seem like a bit of a cop out, but it really isn&#8217;t. I&#8217;ve regularly found myself in need of some quick passwords to hand out to users that are both semi-secure and easy to remember. With apg, this can become a reality. First, install apg: # yum install apg .. snip [...]]]></description>
			<content:encoded><![CDATA[<p>This week&#8217;s program may seem like a bit of a cop out, but it really isn&#8217;t.  I&#8217;ve regularly found myself in need of some quick passwords to hand out to users that are both semi-secure and easy to remember.  With <strong>apg</strong>, this can become a reality.</p>
<p>First, install <strong>apg</strong>:</p>
<pre># yum install apg
.. snip ..
Install      1 Package(s)
.. snip ..
Total download size: 101 k
Is this ok [y/N]: <strong>y</strong>
.. snip ..
Installed: apg.i386 0:2.3.0b-5.fc8
Complete!</pre>
<p><strong>apg</strong> does provide several switches which help to provide an easy way to distribute passwords.  Recently, I generated random, yet pronounceable passwords for about 30 users of an application I was using.  it was quite nice to let the users login and feel safe with my choices of passwords.</p>
<p>To start with <strong>apg</strong> is quite easy to generate a set of passwords:</p>
<pre>$ apg
NatnawmIx
GhisImAv*
Bahiwaihet
adMuhevep
Ombachat
cier]bipt</pre>
<p>These passwords are the default set from apg, providing six pronounceable, 8-10 digit,   In my opinion, its better to lose a bit of security to make a password easy to remember, than to have a user have to write the password down, more or less defeating the purpose of the password in the first place.</p>
<p>Because of my opinion, (and no, I&#8217;m not a security expert by any means, just using common sense), its probably a good idea to have a look at some of the switches provided by <strong>apg</strong>:</p>
<pre>-a : <em>0</em> (default) will make the passwords semi-pronounceable, <em>1</em> on the other hand, will be pseudo-random

-n : tell <strong>apg</strong> how many passwords to display

-m/-x : the minimum/maximum length of the generated passwords</pre>
<p>Here&#8217;s an example of these options in use:</p>
<pre>$ apg -a 1 -n 2 -m 7 -x 10</pre>
<p><strong>apg</strong> has more to give us though.  We can use some standard Linux password checking utilities to help us:</p>
<pre>-r : checks the generated passwords against a particular dictionary file.  /usr/share/dict/words, for example.</pre>
<p>Adding this to our previous example (and removing the -a option) will verify the password doesn&#8217;t have any dictionary words:</p>
<pre>$ apg -r /usr/share/dict/words -n 2 -m 7 -x 10</pre>
<p>The last component is <em>-M mode</em>, which can request/require that a password has a particular set of attributes.  Its a bit more complex than the others above.  The <em>mode</em> consists of eight letters, <em>S</em>, <em>N</em>, <em>C</em> and <em>L</em>, in both upper and lower case.</p>
<pre>S :  must use special symbol set for every generated password.
s :  should use special symbol set for password generation.

N : must use numeral symbol set for every generated password.
n : should use numeral symbol set for password generation.

C : must use capital symbol set for every generated password.
c : should use capital symbol set for password generation.

L : must use small letters symbol set for every generated password (always present if pronounceable  password generation algorithm is used).
l  : should use small letters symbol set for password generation.</pre>
<p>As you might be able to tell, the list above is almost directly from the <em>man</em> page for <strong>apg</strong>.  This is on purpose as it is very well explained (and recommended to read each and every <em>man</em> page for any tool used).   Many a good trick has come directly from the <em>man</em> pages.</p>
<p>Let&#8217;s see these options in use:</p>
<pre>$ apg -n 2 -m 7 -x 10 -M SCnL
Hej=Nio
nefMit/</pre>
<p>What is noted right away during several iterations of these <em>modes</em> is the fact that rarely, if ever, is a number included.  It seems the lowercase modes are not strong suggestions except in the case of &#8220;lower case letters&#8221;.  However, using the uppercase mode values works every time as expected.</p>
<p><strong>apg</strong> is a simple, yet effective tool for generating passwords.  My hope is that you decide to use more secure passwords in the future with tools like <strong>apg</strong>.</p>
<p>Cheers,</p>
<p>Herlo</p>
]]></content:encoded>
			<wfw:commentRss>http://sexysexypenguins.com/2007/11/21/pow-apg-automated-password-generator/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
