You are on page 1of 2

MOHAMED HISHAM MOHAMED IBNOUF

CS285 PROJECT REPORT

Objective:
Writing a code using the RSA algorithm to encrypt and decrypt any kind of character in the ASCII
code book.

Contribution:
A code that able to take each character from an input string then use the RSA algorithm formula
((P1*k)+P2)mod ASCII code book length)) for encryption then decrypt each character using

(K2-((P1*k)+P2)mod ASCII code book length))== zero condition .

As for the input P1 and P2 prime number will be given by the user.

Screenshots (code + input/output)


MOHAMED HISHAM MOHAMED IBNOUF
CS285 PROJECT REPORT

#Tried sample input for p1= 7 and p2 = 3


Original text Encryption Decryption

You might also like