Encryption Techniques. Rsa Algorithm: Objective
Encryption Techniques. Rsa Algorithm: Objective
OBJECTIVE:
PROCEDURE:
1. Create a text file (.txt) containing the first names of the team members (use space as word separator).
2. Open the file in MATLAB (use fopen). Display the file identifier (fid).
3. Read the file in MATLAB (use fread). Display the vector f, containing the decimal ASCII character
codes.
5. Choose a pair of distinct prime numbers (p, q) that will be used for RSA code design.
the numbers will be chosen so that the code can process individually each byte, character-by- character .
7. Implement the RSA encoding algorithm (the spaces between words are not encrypted).
8. Encode vector f using your encryption key. Display the coded vector (c). Display the encrypted
10. Decrypt c using your decryption key (denote the decrypted vector as v). Display the decrypted text.
CONCLUSIONS:
What difficulties did you meet by implementing the RSA encryption and decryption algorithms?