Question

1.Consider the plain text 'Mom please don't tell dad I crashed the car I'll get it...

1.Consider the plain text 'Mom please don't tell dad I crashed the car I'll get it fixed before he even knows'. Using the Vigenere cipher I get the following cipher text: ''PFUKPJAKXGFVJXYEDEGRLDGWAKAHUBCIHAJBZZTGKJTAMIZFZHGEXHUVPZIAEFDQFEN'. What key did I use?

2.How can frequency analysis of words and characters help an attacker crack substitution ciphers?

3.Using a list comprehension, make a list of all square numbers from 0 to 10000 (i.e [0,1,4,9,16])

Homework Answers

Answer #1

1.the key used is drivefast

2.The methodology behind frequency analysis relies on the fact that in any language, each letter has its own personality. The most obvious trait that letters have is the frequency with which they appear in a language. Clearly in English the letter "Z" appears far less frequently than, say, "A". In times gone by, if you wanted to find out the frequencies of letters within a language, you had to find a large piece of text and count each frequency. Now, however, we have computers that can do the hard work for us. But in fact, we don't even need to do this step, as for most languages there are databases of the letter frequencies, which have been calculated by looking at millions of texts, and are thus very highly accurate.

3.

squares = []
for d in range(1,10000):
# Append the next square to the list
squares.append(d**2)
print(squares)

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT