In cryptography, you could often break the algorithm if you
know what was the original (plain) text that was encoded
into the current ciphertext. This is called the plain text
attack. In this simple problem, we illustrate the plain
text attack on a simple substitution cipher encryption,
where you know each letter has been substituted with a
different letter from the alphabet but you don’t know what
that letter is.

You are given the cipherText as the input string to the
function getwordSets(). You know that a plain
text "AMMUNITION" occurs somewhere in this cipher text.
Now, you have to find out which sets of characters
corresponds to the encrypted form of the "AMMUNITION". You
can assume that the encryption follows simple substitution
only. [Hint: You could use the pattern in the "AMMUNITION"
like MM occurring twice together to identify this]


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

Explain function pointer with exapmles.

2 Answers  


Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant

0 Answers  


WHAT IS LOW LEVEL LANGUAGE?

2 Answers  


Can one function call another?

0 Answers  


What is the exact difference between '\0' and ""

3 Answers  






Is boolean a datatype in c?

0 Answers  


Input any no. and print all the the numbers that comes before it like this for e.g input = 4 0 01 012 0123 01234 plz answer it 2day

3 Answers  


can we declare a function in side the structure?

2 Answers   HCL,


What is the difference between class and object in c?

0 Answers  


What is #include cctype?

0 Answers  


identify the in correct expression a.a=b=3=4; b.a=b=c=d=0; float a=int b=3.5; d.int a; float b; a=b=3.5;

8 Answers   TCS,


Write a C program to convert an integer into a binary string?

1 Answers  


Categories