Article View: alt.privacy.anon-server
Article #146978Re: 'hand rolled' crypto?
From: John Bailey
Date: Sat, 28 Feb 2004 13:32
Date: Sat, 28 Feb 2004 13:32
41 lines
3091 bytes
3091 bytes
On Fri, 27 Feb 2004 04:58:35 +0100 (CET), Tarapia Tapioco <comesefosse@ntani.firenze.linux.it> wrote: >Is it possible to implement a very basic version of RSA public key encryption in a language like QBasic? > >so how about it? is this at all reasonable? A non-trivial question! I have tried a number of approaches. The main challenge is doing long number arithmetic that is large enough to be safe against factoring. Given my results so far, the answer to your question is YES, however the intensity of the yes may depend on your criteria for success. My objective in this has been to create an encryption suite that can be easily and completely inspected before compiling or interpreting such that there is complete safety from spurious insertion of back doors in the code. Currently I am trying to apply Chinese Remainder Theorem techniques using Excel spreadsheets to create a package that satisfies this criteria. http://home.rochester.rr.com/jbxroads/interests/sci.crypt/old_trunk/ is a directory with a collection of c code which can serve as a model for the basic functions needed to add, multiply, invert, etc for larger than standard numbers. http://home.rochester.rr.com/jbxroads/interests/sci.crypt/bc_based_math/ is a directory containing bc (a Unix utility) based scripts for the two basic steps, exponentiation and inverting needed for RSA. http://home.rochester.rr.com/jbxroads/interests/sci.crypt/small_num_expont.html is a page that does modular exponentiation using javascript. Inspect the source code from the page using your browser. http://www.ohdave.com/rsa/ is a website which has a complete implementation of RSA in javascript. This shows it can be done, (if in javascript, then in Basic) however in this case the working utilities and functions are not readily visible for inspection. John Bailey http://home.rochester.rr.com/jbxroads/mailto.html
Technical Details
Message-ID:
<40409107.1533517180@news-server.rochester.rr.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.security.pgp.20140722.mbox.gz!intern1.nntp.aus1.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!border1.nntp.sjc.giganews.com!nntp.giganews.com!news.moat.net!newsfeed.mountaincable.net!nntp1.fuse.net!news.maxwell.syr.edu!news-rtr.nyroc.rr.com!news-out.nyroc.rr.com!twister.nyroc.rr.com.POSTED!53ab2750!not-for-mailReferences:
<9ba0cc4246e9b58b683926258be0ebd5@firenze.linux.it>Show Full Headers
Complete Article Headers
Message-ID: <40409107.1533517180@news-server.rochester.rr.com> Subject: Re: 'hand rolled' crypto? Date: Sat, 28 Feb 2004 13:32:17 GMT From: john_bailey@rochester.rr.com (John Bailey) References: <9ba0cc4246e9b58b683926258be0ebd5@firenze.linux.it> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.security.pgp.20140722.mbox.gz!intern1.nntp.aus1.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!border1.nntp.sjc.giganews.com!nntp.giganews.com!news.moat.net!newsfeed.mountaincable.net!nntp1.fuse.net!news.maxwell.syr.edu!news-rtr.nyroc.rr.com!news-out.nyroc.rr.com!twister.nyroc.rr.com.POSTED!53ab2750!not-for-mail Newsgroups: alt.privacy,alt.privacy.anon-server,alt.security.pgp X-Newsreader: Forte Free Agent 1.11/32.235 Lines: 41 NNTP-Posting-Host: 66.67.126.162 X-Complaints-To: abuse@rr.com X-Trace: twister.nyroc.rr.com 1077975137 66.67.126.162 (Sat, NNTP-Posting-Date: Sat, 28 Feb 2004 08:32:17 EST Organization: Road Runner