X-Hamster-Info: Score=0 Received=20010730142309 Xref: localhost sci.crypt:1097 Path: news.t-online.com!newsmm00.sul.t-online.com!newsfeed01.sul.t-online.de!t-online.de!newsfeed.hanau.net!news-fra1.dfn.de!news.tele.dk!195.54.122.107!newsfeed1.bredband.com!bredband!newsfeed.sovam.com!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail Message-ID: <3B651D48.E5D47EFE@invalid.addr> From: Carl Duncan X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: sci.crypt Subject: RSA in 7 Steps Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 63 Date: Mon, 30 Jul 2001 04:39:36 -0400 NNTP-Posting-Host: 64.229.99.187 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 996482420 64.229.99.187 (Mon, 30 Jul 2001 04:40:20 EDT) NNTP-Posting-Date: Mon, 30 Jul 2001 04:40:20 EDT Organization: Bell Sympatico X-Old-Xref: news.t-online.com sci.crypt:145779 I wrote the following capsule summary of RSA and the simplest example I could devise. This was just for my own education but maybe it will be useful to others so I'll put it here. (I put these notes in the public domain, so feel free to use it in any way.) If the more knowledgeable readers of this list find errors, please do followup with a correction! =-=-=-=-=-=-=-=-=-=-=-=-=- RSA Algorithm in 7 Steps: (1) Pick 2 large primes, p and q, each 1000-2000 bits long. Use 4 Fermat Tests to test for primality: If b^(x-1) % x = 1 for each of b={2,3,5,7} then x is very likely prime. If != 1 for any b, then x is definitely not prime. (2) Compute the public modulous, n = p*q. (3) Choose the public exponent e such that e