Breaking RSA Encryption with MATLAB: A Detailed Lab Session 5
VerifiedAdded on  2023/03/31
|5
|496
|488
Practical Assignment
AI Summary
This assignment focuses on decrypting ciphertext using the RSA algorithm in MATLAB. The process begins with finding the private key associated with a given public key [n,e] = [2407,57] using MATLAB code that iteratively computes primes p and q such that n = p*q, calculates x = (p-1)*(q-1), and determines the private key d. The provided MATLAB code efficiently computes the private key [n,d] = [2407,1289]. Subsequently, the decryptString.m function is used to decrypt the initial ciphertext c, revealing a portion of the message. The process is then repeated with a new public key [n,e] = [7663,89] to decrypt the remaining ciphertext, ultimately uncovering the full message: 'There are two types of encryption: one that will prevent your sister from reading your diary and one that will prevent your government. (Bruce Schneir)'. This lab demonstrates a practical application of RSA decryption using computational tools, with Desklib providing resources for students.
1 out of 5





