1.

What will be the ciphered text corresponding to plain text “sanfoundry” if an affine cipher is used with key values as a=5, b=10?(a) wkxjcgxzra(b) gkxteuxfzw(c) ukxhmyxdfg(d) rfsexbsumvThe question was posed to me in homework.My question is from Cryptography topic in portion Cryptography of Data Structures & Algorithms II

Answer»

Right option is (a) wkxjcgxzra

Easiest EXPLANATION - Affine cipher uses LINEAR ALGEBRA for the PURPOSE of ENCRYPTION. It uses the formula(ax+b)%26 for this purpose. So the ciphered text will be “wkxjcgxzra”.



Discussion

No Comment Found

Related InterviewSolutions