Question: Write a program that will decrypt the following 3 strings (your main routine should spit out the decrypted text) that were encrypted using the affine

Write a program that will decrypt the following 3 strings (your main routine should spit out the decrypted text) that were encrypted using the affine cipher e = f(d) = 7d + 3. final String STRING_1 = "FIGSD RSFYHG ESXTSDJJHQT HQ ODUD HZ MNQ DQY TXXY MXS JP TSDYF"; final String STRING_2 = "GAFSF HZ D CXG XM RXJECFI JDGA KFAHQY GAF FQRSPEGHXQ DQY YFRSPEGHXQ NZFY KP GAF HQGFSQFG"; final String STRING_3 = "H BHCC QXG BSHGF KDY GAHQTZ DKXNG JHVF ANKKDSY XQ SDGFJPESXMFZZXSZ"; You should then also code the encrypt function and send me a fourth encrypted string constant (STRING_4) that I can decrypt using my decrypt function (should work the same as yours).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!