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
What are the 4 types of functions?
How do we make a global variable accessible across files? Explain the extern keyword?
Is multithreading possible in c?
what is volatile in c language?
9 Answers Cap Gemini, HCL, Honeywell, TCS, Tech Mahindra,
How can I generate floating-point random numbers?
What are operators in c?
void main() { int a=1; printf("%d %d %d",a,++a,a++); } the output is supposed to be 1 2 2....but it is 3 3 1 this is due to calling conventions of C. if anyone can explain me how it happens?
Should a function contain a return statement if it does not return a value?
what is an array
what is the difference between structural,object based,object orientd programming languages?
number of times a digit is present in a number
What is 02d in c?