Code covered by the BSD License  

Highlights from
RSA algorithm

5.0
5.0 | 1 rating Rate this file 46 Downloads (last 30 days) File Size: 1.38 KB File ID: #46824 Version: 1.1
image thumbnail

RSA algorithm

by

 

02 Jun 2014 (Updated )

RSA algorithm for encrypting and decrypting a message

| Watch this File

File Information
Description

This code asks for Two prime numbers and then computes Public and Private key. Then the message is encrypted using Public key and decrypted using Private key. An example is shown in figure.

Required Products MATLAB
MATLAB release MATLAB 7.11 (R2010b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
13 Mar 2015 rh

rh (view profile)

you should use extended eucleudianalgorithm to search for d.
this implementation is incorrect
dec(enc(msg)) != msg

Comment only
10 Mar 2015 jafar hassanpour  
Updates
09 Jun 2014 1.1

changed the title to RSA algorithm

Contact us