Flux rss
Bookmark Bookmark & Share
La codificazione con RSA A codificação com RSA Verschlüsselung durch RSA Le chiffrement avec RSA Cifrado por medio de RSA

the RSA system

The first public-key encryption (asymmetric encryption) algorithm was developed by R.Merckle and M.Hellman in 1977. It was quickly made obsolete thanks to the work of Shamir, Zippel and Herlestman, famous cryptanalysts.

In 1978, the public key algorithm by Rivest, Shamir and Adelman (hence its name, RSA) appeared. This algorithm was still used in 2002 to protect the American and Russian armies' nuclear codes.

how RSA works

The functioning of the RSA cryptosystem is based on the difficulty factoring large integers.

Let p and q be two prime numbers, and d an integer such that d is coprime to (p-1)*(q-1)). The triplet (p,q,d) thus represents theprivate key.

The public key is then the doublet (n,e) created with the private key through the following transformations:

n = p * q
e = 1/d mod((p-1)(q-1))

Let M be the message to be sent. The message M needs to be coprime to the key n. Decryption is based on Euler's theorem, which stipulates that if M and n are coprime, then:

Mphi(n) = 1 mod(n)
Phi(n) being the totient function and in the present example worth (p-1)*(q-1).

It is therefore necessary that M not be a multiple of p, q , or n. One solution involves breaking down the message M into bits Mi such that the amount of numbers in each Mi is strictly inferior to that of p and q. This supposes then that p and q are large, which is the case in practice since the principle of RSA lies in the difficulty finding p and q in a reasonable amount of time when n is known, which supposes that p and q are large.

In practice...

Suppose that a user (named Bob) wants to send a message M to a person (let's call her Alice). He simply needs to obtain her public key (n,e) and then calculate the encrypted message c:

c = Me mod(n)

Bob then sends the encrypted message c to Alice, who is able to decrypt it with her private key (p,q,d):

M =  Me*d mod(n) = cd mod(n)


Last update on Thursday October 16, 2008 02:43:18 PM.This document entitled « Encryption with RSA » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the licence, as this note appears clearly.
Unable to connect to a WiFi network encrypted in WPA Unable to connect to a WiFi network encrypted in WPA Symptoms My configuration Solution Explanation Symptoms You are unable to connect to WiFi network encrypted in WPA, even though it is listed, and with a very good signal (3 or 4... en.kioskea.net/faq/sujet-1101-unable-to-connect-to-a-wifi-network-encrypted-in-wpa
Download Flexcrypt email encryption Description The application is designed by Nordic Information Security Group. It has won many awards from certain places and also known worldwide. Flexcrypt email encryption is a tool that allows you to encrypt and also decrypt your emails. Simple... en.kioskea.net/telecharger/telecharger-4317-flexcrypt-email-encryption
Download Excel Encryption Advanced Tool As its name suggests, this software will allow you encrypt your Excel documents nto.exe format. When a user is going to open an encrypted document, a dialog box appears to request the correct password. The dialog box displays the computer’s ID and you... en.kioskea.net/telecharger/telecharger-4555-excel-encryption-advanced-tool
[TrueCrypt] Creating encrypted volumes[TrueCrypt] Creating encrypted volumes TrueCrypt is a software allowing you to protect data by encrypting them. Besides being stable, it available for Linux and Windows platforms. Installing TrueCrypt TrueCrypt is not available in the Ubuntu... en.kioskea.net/faq/sujet-1268-truecrypt-creating-encrypted-volumes
WEP encryption protecting wireless networkWEP encryption protecting wireless network Myth Explanation Myth WEP encryption helps to protect my wireless network. ==Reality= FALSE Explanation WEP encryption are common for restricting unauthorized persons for using and... en.kioskea.net/faq/sujet-1694-wep-encryption-protecting-wireless-network
[myths] Does WEP encryption protect my wireless network?[Myth] Does WEP encryption protect my wireless network? Myth Reality Explanation Myth WEP encryption helps to protect my wireless network. Reality FALSE Explanation WEP allows in principle to avoid: That the unauthorized use... en.kioskea.net/faq/sujet-2251-myths-does-wep-encryption-protect-my-wireless-network
How to recover encrypted hidden folderHello, How to recover encrypted hidden folder in win xp pro... Please help me to recover my data.. en.kioskea.net/forum/affich-40618-how-to-recover-encrypted-hidden-folder
Problem with pendrive of kingstonHello, my name is jagadeesh.iam using kingston2gb pendrive,the drive become virus,iwant to encrypt my pendrive.and one more thing how can i install antivirus software in usb mass drive with password protection like Scandisk usb mass storage... en.kioskea.net/forum/affich-43775-problem-with-pendrive-of-kingston
Connection not encryptedHello, i have windows vista and have just recently joined an online bingo site and am having problems trying to access the site. when i press play now another page comes up and says loading ok it does then it goes onto connect and stays like that.... en.kioskea.net/forum/affich-103453-connection-not-encrypted
Download Advanced Encryption Package ProfessionalThis software allows you to encrypt and to decrypt your e-mails from Windows explorer. The program supports more than 17 military encryption algorithms such as : DESX, BLOWFISH, RIJNDAEL (AES), CAST, 3-DES, RC2, DIAMOND2, TEA, SAFER, 3-WAY, GOST,... en.kioskea.net/telecharger/telecharger-4508-advanced-encryption-package-professional
Download Encryption ShieldDescription The application is designed by Encryption Shield Groups. Simple and easy to use, the application has won awards in certain places. It is also well known worldwide for the services it provides and it is being used in many enterprises.... en.kioskea.net/telecharger/telecharger-4244-encryption-shield
Download P-EncryptMail for OutlookP-EncryptMail is a add-in for Microsoft Outlook 2000 (and higher). It provides a safe and fast protection of your e-mail contents. For that, simply select the message that you would like to encrypt and to click “encrypt/decrypt”. Then,... en.kioskea.net/telecharger/telecharger-4382-p-encryptmail-for-outlook
Researchers find way to sidestep computer disk encryptionThe keyboard of a Hewlett-Packard desktop computer is displayed at a Best Buy store on February 19, 2008 in San Francisco, California. Researchers said Friday they found a way to sidestep encryption technology commonly used to protect sensitive... en.kioskea.net/actualites/researchers-find-way-to-sidestep-computer-disk-encryption-10148-actualite.php3
EU scientists launch new, 'unbreakable' encryption systemA sample of fiber optic cable is seen on display in Singapore in June 2008. A new encryption system, which its creators say is unbreakable, got its first test run Wednesday in Vienna, scientists from the European Union project SECOQC announced. A... en.kioskea.net/actualites/eu-scientists-launch-new-unbreakable-encryption-system-10784-actualite.php3
PGP - Pretty Good PrivacyIntroduction to PGP PGP (Pretty Good Privacy) is a cryptosystem (encryption system) that was invented by Philip Zimmermann, a computer analyst. From 1984 to 1991, Philip Zimmermann worked on a program that made it possible to run RSA on personal... en.kioskea.net/contents/crypto/pgp.php3
Public-key systemsthe principle of public-key encryption The principle of asymmetric encryption (also called public-key encryption) first appeared in 1976, with the publication of a work about cryptography by Whitfield Diffie and Martin Hellman. In an asymmetric... en.kioskea.net/contents/crypto/clepublique.php3
Private-key (or secret-key) cryptographySymmetric encryption Symmetric encryption (also called private-key encryption or secret-key encryption) involves using the same key for encryption and decryption. Encryption involves applying an operation (an algorithm) to the data to be... en.kioskea.net/contents/crypto/cleprivee.php3