<?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: How to Generate, Encrypt and Decrypt Random Passwords in Linux	</title>
	<atom:link href="https://www.tecmint.com/generate-random-password-linux/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/generate-random-password-linux/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Thu, 13 Jul 2023 16:55:21 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: gregory		</title>
		<link>https://www.tecmint.com/generate-random-password-linux/comment-page-1/#comment-881837</link>

		<dc:creator><![CDATA[gregory]]></dc:creator>
		<pubDate>Fri, 07 Apr 2017 08:23:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=12218#comment-881837</guid>

					<description><![CDATA[Hello,

What about the command: &quot;openssl rand&quot;. Is it good enough to be a part of this article?]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>What about the command: &#8220;openssl rand&#8221;. Is it good enough to be a part of this article?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.tecmint.com/generate-random-password-linux/comment-page-1/#comment-690240</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Tue, 20 Oct 2015 11:42:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=12218#comment-690240</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/generate-random-password-linux/comment-page-1/#comment-690219&quot;&gt;Stef&lt;/a&gt;.

@Stef,
Thanks for the tips....:)]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/generate-random-password-linux/comment-page-1/#comment-690219">Stef</a>.</p>
<p>@Stef,<br />
Thanks for the tips&#8230;.:)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Stef		</title>
		<link>https://www.tecmint.com/generate-random-password-linux/comment-page-1/#comment-690219</link>

		<dc:creator><![CDATA[Stef]]></dc:creator>
		<pubDate>Tue, 20 Oct 2015 10:55:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=12218#comment-690219</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/generate-random-password-linux/comment-page-1/#comment-690213&quot;&gt;Stef&lt;/a&gt;.

As a second though, applying base64 to the output of md5sum, so an hexadecimal number, is even worse because that seriously limits the possibilities. 

Here a small bash command that shows the probability of finding a character at each rank 1-8. This is of course cyclic since base64 encodes 3 input bytes in 4 characters.   

# for ((j=1;j&#060;=8;j++)) ; do echo === $j ; for ((i=0;i&#060;1000;i++)) ; do echo $RANDOM &#124; md5sum &#124; base64 &#124; cut -c $j ; done &#124; sort &#124; uniq -c ; done
]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/generate-random-password-linux/comment-page-1/#comment-690213">Stef</a>.</p>
<p>As a second though, applying base64 to the output of md5sum, so an hexadecimal number, is even worse because that seriously limits the possibilities. </p>
<p>Here a small bash command that shows the probability of finding a character at each rank 1-8. This is of course cyclic since base64 encodes 3 input bytes in 4 characters.   </p>
<p># for ((j=1;j&lt;=8;j++)) ; do echo === $j ; for ((i=0;i&lt;1000;i++)) ; do echo $RANDOM | md5sum | base64 | cut -c $j ; done | sort | uniq -c ; done</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Stef		</title>
		<link>https://www.tecmint.com/generate-random-password-linux/comment-page-1/#comment-690213</link>

		<dc:creator><![CDATA[Stef]]></dc:creator>
		<pubDate>Tue, 20 Oct 2015 10:34:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=12218#comment-690213</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/generate-random-password-linux/comment-page-1/#comment-529812&quot;&gt;Avishek Kumar&lt;/a&gt;.

Be aware that the value returned by $RANDOM is between 0 and 32767 so this method is not very secure. You should add a seed. Also, the output contains only 8 hexadecimal numbers and so should be easy to crack by brute force.

echo FooBar$RANDOM &#124; md5sum &#124; base64 &#124; cut -c 1-8

Another alternative is to generate random bytes using /dev/urandom (or even better using /dev/random but that one can be very slow) and to convert them to characters using base64

   cat /dev/urandom &#124; base64 &#124; head -n 1 &#124; cut -c 1-8]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/generate-random-password-linux/comment-page-1/#comment-529812">Avishek Kumar</a>.</p>
<p>Be aware that the value returned by $RANDOM is between 0 and 32767 so this method is not very secure. You should add a seed. Also, the output contains only 8 hexadecimal numbers and so should be easy to crack by brute force.</p>
<p>echo FooBar$RANDOM | md5sum | base64 | cut -c 1-8</p>
<p>Another alternative is to generate random bytes using /dev/urandom (or even better using /dev/random but that one can be very slow) and to convert them to characters using base64</p>
<p>   cat /dev/urandom | base64 | head -n 1 | cut -c 1-8</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Avishek Kumar		</title>
		<link>https://www.tecmint.com/generate-random-password-linux/comment-page-1/#comment-599546</link>

		<dc:creator><![CDATA[Avishek Kumar]]></dc:creator>
		<pubDate>Mon, 15 Jun 2015 10:08:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=12218#comment-599546</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/generate-random-password-linux/comment-page-1/#comment-527528&quot;&gt;Carl&lt;/a&gt;.

Dear Carl,
I am sorry, but it is a project developed by us and we have not named it yet. At this point we have not even concluded to publish the software under any particular Licence.

Keep connected!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/generate-random-password-linux/comment-page-1/#comment-527528">Carl</a>.</p>
<p>Dear Carl,<br />
I am sorry, but it is a project developed by us and we have not named it yet. At this point we have not even concluded to publish the software under any particular Licence.</p>
<p>Keep connected!</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
