<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments on: 4 Ways to Generate a Strong Pre-Shared Key (PSK) in Linux	</title>
	<atom:link href="https://www.tecmint.com/generate-pre-shared-key-in-linux/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/generate-pre-shared-key-in-linux/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Thu, 13 Jul 2023 08:32:21 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.tecmint.com/generate-pre-shared-key-in-linux/comment-page-1/#comment-1479424</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Thu, 22 Apr 2021 06:07:05 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=36122#comment-1479424</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/generate-pre-shared-key-in-linux/comment-page-1/#comment-1479288&quot;&gt;Carlo Capocasa&lt;/a&gt;.

@Carlo,

Thanks for the tip, hope these commands helpful to our readers...]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/generate-pre-shared-key-in-linux/comment-page-1/#comment-1479288">Carlo Capocasa</a>.</p>
<p>@Carlo,</p>
<p>Thanks for the tip, hope these commands helpful to our readers&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Carlo Capocasa		</title>
		<link>https://www.tecmint.com/generate-pre-shared-key-in-linux/comment-page-1/#comment-1479288</link>

		<dc:creator><![CDATA[Carlo Capocasa]]></dc:creator>
		<pubDate>Wed, 21 Apr 2021 20:33:32 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=36122#comment-1479288</guid>

					<description><![CDATA[My favorite, because you can choose which characters are used:
&lt;pre&gt;
&#060; /dev/urandom tr -dc a-zA-Z0-9 &#124; head -c64
&lt;/pre&gt;
This will create a 64 character alphanumeric PSK.

Replace &lt;strong&gt;a-zA-Z0-9&lt;/strong&gt; with another list of characters and ranges to control which characters occur, and replace 64 with another number to control length.

e.g.

8 lower-case letters
&lt;pre&gt;
&#060; /dev/urandom tr -dc a-z &#124; head -c8
&lt;/pre&gt;
16 handwriting-unambiguous alphanumeric characters
&lt;pre&gt;
&#060; /dev/urandom tr -dc a-jmnoqrtyA-HJLMNQRTY2-9 &#124; head -c16
&lt;/pre&gt;
64 alphanumeric characters and all non-space printable ascii symbols (\ escapes the ! for the shell)
&lt;pre&gt;
&#060; /dev/urandom tr -dc \!-~ &#124; head -c64
&lt;/pre&gt;
64 URL-safe characters (\ escapes the ()&#039;!*; for the shell)
&lt;pre&gt;
&#060; /dev/urandom tr -dc a-zA-Z0-9-._~\(\)\&#039;\!\*:@,\; &#124; head -c64
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>My favorite, because you can choose which characters are used:</p>
<pre>
&lt; /dev/urandom tr -dc a-zA-Z0-9 | head -c64
</pre>
<p>This will create a 64 character alphanumeric PSK.</p>
<p>Replace <strong>a-zA-Z0-9</strong> with another list of characters and ranges to control which characters occur, and replace 64 with another number to control length.</p>
<p>e.g.</p>
<p>8 lower-case letters</p>
<pre>
&lt; /dev/urandom tr -dc a-z | head -c8
</pre>
<p>16 handwriting-unambiguous alphanumeric characters</p>
<pre>
&lt; /dev/urandom tr -dc a-jmnoqrtyA-HJLMNQRTY2-9 | head -c16
</pre>
<p>64 alphanumeric characters and all non-space printable ascii symbols (\ escapes the ! for the shell)</p>
<pre>
&lt; /dev/urandom tr -dc \!-~ | head -c64
</pre>
<p>64 URL-safe characters (\ escapes the ()&#039;!*; for the shell)</p>
<pre>
&lt; /dev/urandom tr -dc a-zA-Z0-9-._~\(\)\&#039;\!\*:@,\; | head -c64
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Daniel Stiner		</title>
		<link>https://www.tecmint.com/generate-pre-shared-key-in-linux/comment-page-1/#comment-1398831</link>

		<dc:creator><![CDATA[Daniel Stiner]]></dc:creator>
		<pubDate>Mon, 07 Dec 2020 02:29:25 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=36122#comment-1398831</guid>

					<description><![CDATA[Note that using &quot;&lt;strong&gt;date&lt;/strong&gt;&quot; to generate keys is *not* secure.

date prints strings like &quot;Sun Dec  6 18:05:53 PST 2020&quot;. Since this string changes once per second, in any given day there are only 86,400 potential keys. This is a tiny number of keys that is easy for an attacker to brute force. In comparison &quot;openssl rand -base64 32&quot; has 256^32 potential keys, a vastly larger number that is difficult to brute force (115,792,089,237,316,195,423,570,985,008,687,907,853,269,984,665,640,564,039,457,584,007,913,129,639,936)]]></description>
			<content:encoded><![CDATA[<p>Note that using &#8220;<strong>date</strong>&#8221; to generate keys is *not* secure.</p>
<p>date prints strings like &#8220;Sun Dec  6 18:05:53 PST 2020&#8221;. Since this string changes once per second, in any given day there are only 86,400 potential keys. This is a tiny number of keys that is easy for an attacker to brute force. In comparison &#8220;openssl rand -base64 32&#8221; has 256^32 potential keys, a vastly larger number that is difficult to brute force (115,792,089,237,316,195,423,570,985,008,687,907,853,269,984,665,640,564,039,457,584,007,913,129,639,936)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.tecmint.com/generate-pre-shared-key-in-linux/comment-page-1/#comment-1344226</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Mon, 13 Jul 2020 04:53:54 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=36122#comment-1344226</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/generate-pre-shared-key-in-linux/comment-page-1/#comment-1344105&quot;&gt;Nooby&lt;/a&gt;.

@Nooby,

Thanks, corrected the command in the article.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/generate-pre-shared-key-in-linux/comment-page-1/#comment-1344105">Nooby</a>.</p>
<p>@Nooby,</p>
<p>Thanks, corrected the command in the article.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Nooby		</title>
		<link>https://www.tecmint.com/generate-pre-shared-key-in-linux/comment-page-1/#comment-1344105</link>

		<dc:creator><![CDATA[Nooby]]></dc:creator>
		<pubDate>Sun, 12 Jul 2020 16:28:04 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=36122#comment-1344105</guid>

					<description><![CDATA[&quot;4. Using date and sha245sum Commands&quot;
should read:
&quot;4. Using date and sha256sum Commands&quot;

It&#039;s confusing enough without hurting the noob&#039;s brain even more! ;-)

Thank-you.]]></description>
			<content:encoded><![CDATA[<p>&#8220;4. Using date and sha245sum Commands&#8221;<br />
should read:<br />
&#8220;4. Using date and sha256sum Commands&#8221;</p>
<p>It&#8217;s confusing enough without hurting the noob&#8217;s brain even more! ;-)</p>
<p>Thank-you.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
