<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Openssl on Amit Agarwal Linux Blog</title>
    <link>/tags/openssl/</link>
    <description>Recent content in Openssl on Amit Agarwal Linux Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Mon, 08 Aug 2016 01:16:14 +0000</lastBuildDate>
    
	<atom:link href="/tags/openssl/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Generate random string for various use case</title>
      <link>/2016/08/08/generate-random-string-case/</link>
      <pubDate>Mon, 08 Aug 2016 01:16:14 +0000</pubDate>
      
      <guid>/2016/08/08/generate-random-string-case/</guid>
      <description>&lt;p&gt;Some times I need random string, for example to use as email seperator or to use in some &lt;a class=&#34;zem_slink&#34; title=&#34;Application programming interface&#34; href=&#34;http://en.wikipedia.org/wiki/Application_programming_interface&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;API&lt;/a&gt;. One way is to use tools like &lt;a class=&#34;zem_slink&#34; title=&#34;Device file&#34; href=&#34;http://en.wikipedia.org/wiki/Device_file&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;/dev&lt;/a&gt;/[u]random or od and other such. But they seem cubersome after I figured this out.&lt;/p&gt;
&lt;pre class=&#34;brush:shell&#34;&gt;openssl rand &amp;lt;length&amp;gt;
openssl rand 10
&lt;/pre&gt;
&lt;p&gt;This alone without some parameters is not interesting thoug. You can use ‘-base64’ or ‘-hex’ to select the encoding.&lt;/p&gt;
&lt;p&gt;So if you execute the above you will get something like this&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
