<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Roger Doss</title>
    <description>The latest articles on DEV Community by Roger Doss (@olddog_13).</description>
    <link>https://dev.to/olddog_13</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1135426%2F57933ff7-853a-4cb8-8bbc-3b8c010c8af4.jpg</url>
      <title>DEV Community: Roger Doss</title>
      <link>https://dev.to/olddog_13</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/olddog_13"/>
    <language>en</language>
    <item>
      <title>Perl Stream Cipher</title>
      <dc:creator>Roger Doss</dc:creator>
      <pubDate>Wed, 16 Aug 2023 19:12:21 +0000</pubDate>
      <link>https://dev.to/olddog_13/perl-stream-cipher-5goh</link>
      <guid>https://dev.to/olddog_13/perl-stream-cipher-5goh</guid>
      <description>&lt;p&gt;A stream cipher is a type of cipher that encrypts each bit. I used this design to implement a cipher in Perl that uses SHA-3 as the basis for the pseudo-random bits. The code gets a random set of numbers as a key from random.org, and then encrypts them using a password on disk for key storage. The on disk algorithm is AES. &lt;/p&gt;

&lt;p&gt;The stream cipher then uses the random key to encrypt by xor function of each byte of the plain text, to create the cipher text. When it needs more bits, it re-hashes the key using SHA-3.&lt;/p&gt;

&lt;p&gt;The algorithm can be run using:&lt;/p&gt;

&lt;p&gt;perl -I. ssc_main.pl input.plain output.cipher&lt;/p&gt;

&lt;p&gt;The implementation is here:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/OXKernel/StreamCipher"&gt;StreamCipher&lt;/a&gt;&lt;/p&gt;

</description>
      <category>perl</category>
      <category>programming</category>
      <category>security</category>
      <category>development</category>
    </item>
    <item>
      <title>Perl script to search for large primes</title>
      <dc:creator>Roger Doss</dc:creator>
      <pubDate>Thu, 10 Aug 2023 16:28:40 +0000</pubDate>
      <link>https://dev.to/olddog_13/perl-script-to-search-for-large-primes-416p</link>
      <guid>https://dev.to/olddog_13/perl-script-to-search-for-large-primes-416p</guid>
      <description>&lt;p&gt;Experimental code to search for random probable primes for research. &lt;/p&gt;

&lt;p&gt;The code will create multiple instances of the randPrime_thread.pl script which will search for a random prime starting with a random number. Note that each of the perl scripts run has its own threads. sleep calls are needed so as not to overheat the processor. The processes should end when one of the threads writes a file:&lt;/p&gt;

&lt;p&gt;.randPrime.search.done&lt;/p&gt;

&lt;p&gt;And this happens when one of the threads discovers a probable prime. At the same time, the discovered prime is written to the ./data directory. &lt;/p&gt;

&lt;p&gt;The largest prime generated so far was 9800+ digits large.&lt;/p&gt;

&lt;p&gt;You can control the size of the prime you are looking for by specifying the number of bits.&lt;/p&gt;

&lt;p&gt;The code and data are &lt;a href="https://github.com/OXKernel/randPrime"&gt;here&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>perl</category>
      <category>linux</category>
      <category>security</category>
      <category>programming</category>
    </item>
    <item>
      <title>Perl tags program</title>
      <dc:creator>Roger Doss</dc:creator>
      <pubDate>Tue, 08 Aug 2023 22:30:46 +0000</pubDate>
      <link>https://dev.to/olddog_13/perl-tags-program-3l8</link>
      <guid>https://dev.to/olddog_13/perl-tags-program-3l8</guid>
      <description>&lt;p&gt;Recently, I got some free time to tinker with some side projects. One of which is a Perl based tags program for VIM. It's a work in progress. The idea is to explore regular expressions and parsing out source files of different languages which I think Perl is good at. Feel free to check it out on my &lt;a href="https://github.com/OXKernel/ptags"&gt;github&lt;/a&gt;&lt;/p&gt;

</description>
      <category>perl</category>
      <category>vim</category>
      <category>opensource</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
