Click here to Skip to main content
15,915,873 members
Articles / Programming Languages / C++
Article

RSA Encryption Elgorithm

Rate me:
Please Sign up or sign in to vote.
1.24/5 (25 votes)
11 Oct 2004 69.6K   4K   20   5
This code implements RSA encryption technique in an efficient and reusable way.

Introduction

Famous encryption algorithms have been a mystery for developers who use them by just getting the implementation from somewhere else.

This implementation of RSA is to understand it and to use it in an easy and customizeable way.

The encryption is based on the formula C = M^e (mod n) where n=p*q and p,q,e are prime numbers.

Descryption is perform with the formula M = C^d (mod n) and d can be calculate using ed = 1 (mod (p-1)(q-1)).

Try implementing RSA yourself, its a real fun :) I love to program mathematics!!!

You will see my other algorithms very soon.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer
Australia Australia
C/C++, C# .NET, VB.NET, Linux, Oracle, PostgreSQL, MYSQL

Comments and Discussions

 
Generalrsa Pin
yasmin8329-Jun-10 0:45
yasmin8329-Jun-10 0:45 
GeneralOnce again Pin
Paul Ingles12-Oct-04 1:45
Paul Ingles12-Oct-04 1:45 
GeneralRe: Once again Pin
Jasper4C#12-Oct-04 4:56
Jasper4C#12-Oct-04 4:56 
GeneralNice algo Pin
Sudhir Mangla11-Oct-04 23:01
professionalSudhir Mangla11-Oct-04 23:01 
GeneralRe: Nice algo Pin
immaad13-Oct-04 9:20
immaad13-Oct-04 9:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.