1.

While choosing the value of a and m (m is the no. of alphabets) in affine cipher it must be ensured that?(a) a and m are prime numbers(b) a and m are odd numbers(c) a and m are coprime(d) a and m are even numbersThis question was posed to me during an interview.The question is from Cryptography topic in section Cryptography of Data Structures & Algorithms II

Answer»

Correct option is (c) a and m are coprime

For explanation: While choosing the VALUES of a and m it should be ensured that a and m are coprime. OTHERWISE DECODING the ciphered TEXT WOULD be difficult.



Discussion

No Comment Found

Related InterviewSolutions