The Wayback Machine - https://web.archive.org/web/20210224141933/http://www.cypherspace.org/rsa///

export-a-crypto-system sig

This is a perl program which implements RSA encryption and decryption, and is small enough to use as a signature file. Peter Junger, a law professor in the US, obtained from the US Commerce department a written statement ruling that this program must not be exported from the US.

Please use this sig file:
-export-a-crypto-system-sig -RSA-3-lines-PERL #!/bin/perl -sp0777i<x+d*lmla^*ln%0]dsxx++lmln dsm0<j]dsj $ =unpack('h*',$_);$_="`echo" 16dio\u$k"sk$ sm$n\esn0p[ln*1 lk[d2%sa2 d0$^ixp"|dc`;s \w g;$_="pack('H*',/((..)*)$/)" < xmp> <hr> or more recent 2 line version: <hr> <xmp> print pack"C*",split/\D+/,`echo "16iII*o\U@{$/=$z;[(pop,pop,unpack"H*",&lt;&gt; )]}\EsMsKsN0[lN*1lK[d2%Sa2/d0<x+d*lmla^*ln%0]dsxx++lmln dsm0<j]dsjxp"|dc` < xmp> <hr> <h2>List of versions, and explanations of how it works <a href="story.php">here</a></h2> <p> PERL HACKERS: <a href="story.html"> The quest for most diminutive munitions program</a></p> <h2>How to use the program</h2> <ul> <li>Encrypting / decrypting with <a href="rsa-details.html">perl-rsa</a></li> <li><a href="rsa-keygen.html">Generating RSA keys</a></li> <li><a href="pgpacket.html">Using PGP keys</a> with perl-rsa</li> <li>If you know perl here's a break down of <a href="story.html"> how the program works</a>.</li> </ul> <h2>The T-shirt of the sig</h2> <ul> <li>The above code on a T-shirt. Get your <a href="/web/20210224141933/http://www.cypherspace.org/~adam/uk-shirt.html">munitions-T</a> here. This T-shirt used to be technically illegal to export from the US. <p><a href="/web/20210224141933/http://www.cypherspace.org/shirt/uk-shirt.html"> <img src="/web/20210224141933im_/http://www.cypherspace.org/rsa/shirt.jpg" alt="shirt picture"></a></p> </ul> <h2>The cartoon of the t-shirt of the sig</h2> <ul> <li>Dr Fun cartoon about the shirt <p> <a href="dr-fun-munition-t-shirt.jpg"> <img src="/web/20210224141933im_/http://www.cypherspace.org/rsa/dr-fun-small.jpg" alt="cartoon"> </a></li> </ul> <h2>How to become an Arms Trafficker</h2> <p>Become an <a href="https://web.archive.org/web/20210224141933/http://online.offshore.com.ai/arms-trafficker/"> Arms-Trafficker</a> in one easy step with this great way to register your protest of ITAR by <a href="https://web.archive.org/web/20210224141933/http://www.offshore.com.ai/vince/">Vince Cate</a>. Just click to submit the form and join in the protest. Lots of excellent links. Have you exported RSA today? Includes an option to email a protest letter to US president.</p> <h2>The tattoo of the sig</h2> <ul> <li>Richard White <a href="https://web.archive.org/web/20210224141933/mailto:maldoror@pacificnet.net"> &lt;maldoror@pacificnet.net&gt;</a> has a tattoo of the rsa .sig on his fore arm. <p><a href="tattoo1.jpg"><img src="/web/20210224141933im_/http://www.cypherspace.org/rsa/tattoo1s.jpg" alt="tattoo"></a><br> (click image for larger image)</p></li> <li>Cancer Omega <a href="https://web.archive.org/web/20210224141933/mailto:comega@sekurity.org"> &lt;comega@sekurity.org&gt;</a> has a tattoo on his chest. <p><a href="tattoo2.jpg"><img src="/web/20210224141933im_/http://www.cypherspace.org/rsa/tattoo2s.jpg" alt="tattoo"></a><br> (click image for larger image)</p></li> <li>James Melvin <a href="https://web.archive.org/web/20210224141933/mailto:jmelvin2@bellsouth.net"> &lt;jmelvin2@bellsouth.net&gt;</a> has a tattoo on his arm. <p><a href="tattoo3.jpg"><img src="/web/20210224141933im_/http://www.cypherspace.org/rsa/tattoo3s.jpg" alt="tattoo"></a><br> (click image for larger image)</p></li> <li>Guess that's the end of any foreign trips for them :-)</li> </ul> <h2>Fun with HTML</h2> <ul> <li>hypertext reference with the <a href="link.html">sig in the URL</a></li> </ul> <h2>Media appearances</h2> <ul> <li>(label) <a href="nyt.html">New York Times</a> by Peter Lewis (US)</li> <li>(sig)<a href="shopper.html">Computer Shopper</a> by <a href="https://web.archive.org/web/20210224141933/http://www.tardis.ed.ac.uk/~charlie/">Charlie Stross</a> (UK)</li> <li>(sig) New Scientist by Wendy Grossman (UK)</li> <li>(shirt) Wired (magazine, US)</li> <li>(shirt) Canal+ TV show Nulle Part Alleurs (France)</li> <li>(shirt) Nova magazine (France)</li> <li>(sig, shirt) Planette Internet magazine (France)</li> <li>(shirt) BBC TV, the Learning Zone (UK)</li> <li><a href="/web/20210224141933/http://www.cypherspace.org/shirt/media.html">Pictures</a> of the t-shirt in the media</li> </ul> <h2>Political/legal background</h2> <ul> <li>Why it was <a href="legal.html">illegal to export</a> this 3 line program from the US</li> <li>That weird beast which was the US <a href="itar.html">ITAR</a> crypto restrictions (some aspects still remain after the crypto liberalization)</li> <li>Phil Zimmermann, author of PGP was the subject of a grand jury investigation for allegedly violating ITAR.</li> <li><a href="https://web.archive.org/web/20210224141933/http://www.freenix.fr/netizen/">Jerome Thorel</a> <a href="https://web.archive.org/web/20210224141933/mailto:jt@freenix.fr">&lt;jt@freenix.fr&gt;</a>'s page on the <a href="https://web.archive.org/web/20210224141933/http://www.freenix.fr/netizen/chiffre/perlrsa.html"> sig and shirt</a> in the context of the French laws on encryption.</li> <li><a href="https://web.archive.org/web/20210224141933/http://www.ka9q.net/">Phil Karn</a> is challening the constitutionality of ITAR in court with the amusing <a href="https://web.archive.org/web/20210224141933/http://ka9q.net/export/"> Applied Cryptography disk case</a>.</li> </ul> <h2>Other hacks using the perl-rsa code</h2> <ul> <li><a href="https://web.archive.org/web/20210224141933/mailto:frissell@panix.com">Duncan Frissell</a>'s <a href="label.html">muntions mailing label</a> was distributed at Computers, Freedom and Privacy '95</li> <li><a href="sardines.html">Crypto Sardines</a> by <a href="https://web.archive.org/web/20210224141933/http://www.crl.com/~riche/">Riche</a> (Alex Stewart) and Rui Mendez.</li> <li><a href="https://web.archive.org/web/20210224141933/http://www4.ncsu.edu/unity/users/r/rothwell/html/"> Export-a-coke-can</a> by the pope. (<a href="coke-big.gif">local copy</a>)</li> <li><a href="https://web.archive.org/web/20210224141933/http://online.offshore.com.ai/arms-trafficker/"> International Arms Traffickers page</a> by <a href="https://web.archive.org/web/20210224141933/http://www.offshore.com.ai/vince/">Vince Cate</a>.</li> </ul> <h2>Other diminutive crypto hacks</h2> <ul> <li><a href="https://web.archive.org/web/20210224141933/http://vipul.net/">Vipul Prakash</a> wrote a <a href="https://web.archive.org/web/20210224141933/http://vipul.net/gost/">GOST</a> in 6 lines of perl</li> <li>Clifford Adams wrote an <a href="pureperl.html">RSA in pure perl</a> in 5 lines of perl</li> <li>RSA <a href="https://web.archive.org/web/20210224141933/http://sea-to-sky.net/~sreid/rsagen.txt"> key generation code</a> in perl by Steve Reid.</li> <li>RSA key gen and encryption in perl, pari and dc as dolphin <a href="https://web.archive.org/web/20210224141933/http://www.thinkgeek.com/tshirts/coder/31fe/"> t-shirt</a></li> <li>Small DeCSS (DVD content scrambling algorithm) in C, perl and other implementations <a href="https://web.archive.org/web/20210224141933/http://www-2.cs.cmu.edu/~dst/DeCSS/Gallery/">DeCSS</a></li> <li>RSADSI's <a href="rc4.html">RC4</a> symmetric key stream cipher in 3 lines of PERL</li> <li>Two versions of <a href="rc4c.html">RC4 in C</a></li> <li>RSADSI's <a href="rc5.html">RC5</a> symmetric key block cipher in 6 lines of PERL</li> <li>RSADSI's <a href="md5.html">MD5</a> message digest algorithm in 8 lines of PERL5 by John Allen <a href="https://web.archive.org/web/20210224141933/mailto:allen@grumman.com">&lt;allen@grumman.com&gt;</a></li> <li>The SHA <a href="sha.html">SHA</a> message digest algorithm in 8 lines of PERL5 by John Allen <a href="https://web.archive.org/web/20210224141933/mailto:allen@grumman.com">&lt;allen@grumman.com&gt;</a></li> <li><a href="dh-in-C.html">Diffie-Hellman</a> key exchange in 10 lines of C an anonymous poster</li> <li><a href="perl-dh.html">Diffie-Hellman in 2 lines of perl</a> (inspired by anonymous's C code)</li> <li><a href="idea.html">IDEA</a> in 448 bytes of 80x86 by <a href="https://web.archive.org/web/20210224141933/http://jumper.mcc.ac.uk/~fauzanm/">Fauzan Mirza</a> <a href="https://web.archive.org/web/20210224141933/mailto:fauzanm@jumper.mcc.ac.uk"> &lt;fauzanm@jumper.mcc.ac.uk&gt;</a></li> <li><a href="https://web.archive.org/web/20210224141933/http://amarok.magnet.com/">Andrew Kuchling</a> wrote a Python: <a href="python.html">RSA-in-4-lines-Python</a></li> <li><a href="otp.html">One Time Pad</a> in perl and C</li> <li><a href="https://web.archive.org/web/20210224141933/http://perlmonks.org/?node_id=980191">better OTP in perl</a> on perlmonks</li> <li>Chris <a href="https://web.archive.org/web/20210224141933/http://42groundhogs.com/chris/Chris-tat-fresh.jpg">tattoo of permonks OTP</a> in perl<br><a href="otp-tattoo2.jpg"><img src="/web/20210224141933im_/http://www.cypherspace.org/rsa/otp-tattoo1.jpg" alt="otp tattoo"></a> <li><a href="crack.html">Crack</a> in 1 line of perl by Alec Muffett</li> </ul> <hr> <em> Comments, html bugs to (<a href="/web/20210224141933/http://www.cypherspace.org/adam/">Adam Back</a>) at <a href="https://web.archive.org/web/20210224141933/mailto:adam@cypherspace.org">&lt;adam@cypherspace.org&gt;</a> </em> </body> </html>