RSA Encryption Algorithm - Computing and Software Wiki (2024)

From Computing and Software Wiki

Jump to: navigation, search

The RSA Encryption Algorithm is a form of encryption used in Public Key Encryption Algorithms. The algorithm consists of three phases, Key Generation, Encryption, and Decryption. It is the first publicly disclosed algorithm suitable for digital signing. Messages encrypted with with your Public Key can only be decrypted with your own private key. Conversly, messages encrypted with your own Private Key, can only be decrypted with your public key.

Contents

  • 1 Algorithm
    • 1.1 Key Generation
    • 1.2 Encryption
    • 1.3 Decryption
  • 2 Example
  • 3 Digital Signing
  • 4 History
  • 5 References
  • 6 External Links
  • 7 See Also

Algorithm

The RSA Algorithm consists of three phases, Key Generation, Encryption, and Decryption.

Key Generation

RSA utilizes two keys, a Public Key, and a Private key. These keys are created in the following way.

1. Two suitably large different prime numbers are randomly generated, i, j.

2. The product of these two numbers is calculated and used as the modulus for both the public, and private keys.k = ij

3. Compute the Totient of k. T(k) = (i-1)(j-1)

4. Choose an integer e such that 1 < e < T(k), and e and T(k) are coprime. e is the Public Key Exponent.

5. Compute d such that ed = 1 mod(T(k)). In other words ed mod (T(k)) = 1. d is the Private Key Exponent.

The two keys are a tuple. The public key consists of the Public Key Exponent, and the Modulous, (e,k). The Private Key consists of the Private Key Exponent, and again, the Modulous, (d,k).

Encryption

Person A wants to send a message to Person B. Person B requests person A's Public key, (e,k)

The message to be sent is then turned into a number, m, an integer between 0 and k. The encrypted c message can then be calculated by c = (m^e)(mod k)

Decryption

Person B wants to decrypt a message send from Person A. Person B uses their own private key (d,k) to decrypt the message in the following way. m = (c^d)(mod k)

Example

1. choose 2 prime numbers. For examples sake i=17, j=3

2. compute k=ij, k = 17*3 = 51

3. compute T(k)=(i-1)*(j-1), T(k) = (17-1)*(3-1) = 10*4 = 32

4. Choose an integer e such that 1 < e < T(k), and e and T(k) are coprime.

Choose e = 3

5. Compute d such that 3*d = 1 mod 32, d = 11 such that 3*11 = 1 mod 32

6. Public Key is (k,e), Private Key is (k,d), Public Key = (51, 3), Private Key = (51, 11)

7. Encrypt message using Private Key with c = ((m^e)mod k) . Assume a message m=22 cipher text c = ((m^e)mod k) = 22^3 mod 51 = 10648 mod 51 = 40

8. Decrypt cipher text using Private Key with m' = ((c^d) mod k). Decrypted message m’ = ((40^11) mod 51) = 22

Digital Signing

Messages encrypted with with your Public Key can only be decrypted with your own private key. Conversly, messages encrypted with your own Private Key, can only be decrypted with your public key. Thus, Digital Signing is accomplished in the following way.

Person B wishes to send an encrypted message to Person A

1. The two parties exchange public keys.

2. Person B Encrypts the message with their own Private Key.

3. Person B then Encrypts the message again with Person A's Public Key, and sends the message to Person A.

4. Person A recieves the message, and decrypts it once with their own private key, and then again with Person B's Public Key.


Since the message was encrypted with Person A's public key, only Person A can decrypt the message with their private key. Since the message was also decrypted with Person B's public key, Person A also knows that the message must have been encrypted with Person B's Public key verifying the source of the message.

History

The algorithm was first publicized in 1977 by Ron Rivest, Adi Shamir, and Leonard Adleman. The three worked at MIT at the time. RSA stands for Rivest, Shamir, and Adleman.

References

  • Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, Clifford Stein, Introduction to Algorithms, 2nd Edition, MIT Press and McGraw-Hill, 2001, isbn 0-262-03293-7, pp.881–887

External Links

See Also

  • http://imps.mcmaster.ca/courses/SE-4C03-09/project/wiki-pages.html
  • http://www.cas.mcmaster.ca/wiki/index.php/Public_Key_Encryption_Algorithms
  • http://www.cas.mcmaster.ca/wiki/index.php/Public_Key_Authentication
  • http://www.cas.mcmaster.ca/wiki/index.php/Steganography_and_Digital_Watermarking
  • http://www.cas.mcmaster.ca/wiki/index.php/Data_Encryption_for_Storage_Devices

--Holtzmt 14:53, 12 April 2009 (EDT)

Retrieved from "http://wiki.cas.mcmaster.ca/index.php/RSA_Encryption_Algorithm"

RSA Encryption Algorithm - Computing and Software Wiki (2024)
Top Articles
6 steps to rewire bad money habits - Living Confidently
Breaking the Chains: 7 Ways a Negative Money Mindset is Holding Women Back in Life
Lakers Game Summary
Trevor Goodwin Obituary St Cloud
Tabc On The Fly Final Exam Answers
Lighthouse Diner Taylorsville Menu
Find All Subdomains
Jennette Mccurdy And Joe Tmz Photos
Craigslist Mexico Cancun
Imbigswoo
What is IXL and How Does it Work?
Tcu Jaggaer
Aces Fmc Charting
Alaska: Lockruf der Wildnis
Bowlero (BOWL) Earnings Date and Reports 2024
5 high school volleyball stars of the week: Sept. 17 edition
Procore Championship 2024 - PGA TOUR Golf Leaderboard | ESPN
Aldi Sign In Careers
Bj Alex Mangabuddy
Niche Crime Rate
CANNABIS ONLINE DISPENSARY Promo Code — $100 Off 2024
Watch The Lovely Bones Online Free 123Movies
Alfie Liebel
Jail View Sumter
Kingdom Tattoo Ithaca Mi
Hdmovie2 Sbs
Kroger Feed Login
Blackboard Login Pjc
Taylored Services Hardeeville Sc
Bursar.okstate.edu
Armor Crushing Weapon Crossword Clue
Clearvue Eye Care Nyc
15 Downer Way, Crosswicks, NJ 08515 - MLS NJBL2072416 - Coldwell Banker
Workboy Kennel
Lowell Car Accident Lawyer Kiley Law Group
Poster & 1600 Autocollants créatifs | Activité facile et ludique | Poppik Stickers
Haley Gifts :: Stardew Valley
Vitals, jeden Tag besser | Vitals Nahrungsergänzungsmittel
The 38 Best Restaurants in Montreal
Zero Sievert Coop
Craigslist List Albuquerque: Your Ultimate Guide to Buying, Selling, and Finding Everything - First Republic Craigslist
Bismarck Mandan Mugshots
Felix Mallard Lpsg
Paperless Employee/Kiewit Pay Statements
Craigs List Palm Springs
Best Restaurants Minocqua
Craigslist Odessa Midland Texas
Sofia With An F Mugshot
Pike County Buy Sale And Trade
Mychart University Of Iowa Hospital
Ferhnvi
Port Huron Newspaper
Latest Posts
Article information

Author: Kareem Mueller DO

Last Updated:

Views: 6061

Rating: 4.6 / 5 (66 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Kareem Mueller DO

Birthday: 1997-01-04

Address: Apt. 156 12935 Runolfsdottir Mission, Greenfort, MN 74384-6749

Phone: +16704982844747

Job: Corporate Administration Planner

Hobby: Mountain biking, Jewelry making, Stone skipping, Lacemaking, Knife making, Scrapbooking, Letterboxing

Introduction: My name is Kareem Mueller DO, I am a vivacious, super, thoughtful, excited, handsome, beautiful, combative person who loves writing and wants to share my knowledge and understanding with you.