plaintext_4 |
| encrypt 227 47053 Exercise 10 - Cryptography The value of N that is the modulus for the encryption method will be 32768 <= N <= 65535 The maximum value of input character will be 127 i.e. 7-bit ASCII. If you receive a plain text string before encryption with an odd number of characters, pad the last character in the string with character code 128. Remove any trailing character 128 from plain text after decryption. The above combination of restrictions ensures that the pseudocode given in tutorials works correctly to produce 16-bit ciphertext. The marking procedure for this assignment is as follows: 1.encrypt plain text with your encrypt method and public key given. 2.decrypt cipher text with your decrypt method and private key given, compare plain text to original 3.encrypt plain text with your encrypt method, decrypt it with our decrypt method, compare plain text 4.encrypt plain text with private key and our encrypt method, decrypt with your decrypt method and public key given A script which assists you to test your program according to the above (steps 1 and 2) will be provided. |
James Little |