The Gateway to Computer Science Excellence
+4 votes
2.4k views

What will be the cipher text produced by the following cipher function for the plain text ISRO with key $k=7$. [ Consider $'A'=0, 'B'=1,....'Z'=25$]

$C_{k} (M) = (kM + 13) \mod 26$

  1. RJCH
  2. QIBG
  3. GQPM
  4. XPIN
in Computer Networks by Boss (30.8k points) | 2.4k views

1 Answer

+12 votes
Best answer
Answer is A

See A=0 B=1 C=2 .......... you will get I = 8 ................

Now you just apply the cipher function character wise ,

BY THE WAY IN THE ABOVE FUNCTION M STANDS FOR  1 character one by one of input

So our first character is I

C( I ) = ( KM+13) MOD 26 =(7*8+13)MOD 26 = 17  and if you see 17 is R value

So just from the first character you can get answer RJCH
by Loyal (9.9k points)
selected by
0
the position of `i` is 9. so w.r.t. function C(i) = (7*9+13)MOD 26 = 24 which is X. so option D should be correct.
+1
The main thing to notice here is that alphabets are starting from 0 not from 1.

So 'i' will get 8 not 9. Similarly numbers will be assigned to other characters.
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,324 answers
198,404 comments
105,169 users