Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help this in Java Problem 1: Treaure Huat (4 points) You have come acros a mysterions old docnent, which is rumored to be the

Please help this in Java image text in transcribed
Problem 1: Treaure Huat (4 points) You have come acros a mysterions old docnent, which is rumored to be the ey to finding the fabled treasure of the pirate Captain Blackbeard (worth 4 points). Decrypt the text to learn the location of the treasure chest (and to successfally solve the problem) ZDIBOK HIZLE CR GUN DGRU BG GWN GBII GANN PBIF GNO ONNG Hints Most 17th century pirates have not taken auy web security classes and thas, bave not learut that affine cipbers can easily be broken. The plaintext was written in contemporary English. Note that only the letters of the alphabet (A, B. .2) are encrypted, punctuation marks and spaces are mot. Tasks I. Write a Java function to caleulate the frequencies of letters in the ciphertext, and find at least two pairs of corresponding plain and cipher characters! (2 points) 2. Express the decryption of a character as an alfine transformation in modulo 26 arit hmetic, and complete the source code to decrypt the ciphestext! (2 point) Note that in Java, .9 % 26 "" .9 and .9 % 26 !, 17 Problem 1: Treaure Huat (4 points) You have come acros a mysterions old docnent, which is rumored to be the ey to finding the fabled treasure of the pirate Captain Blackbeard (worth 4 points). Decrypt the text to learn the location of the treasure chest (and to successfally solve the problem) ZDIBOK HIZLE CR GUN DGRU BG GWN GBII GANN PBIF GNO ONNG Hints Most 17th century pirates have not taken auy web security classes and thas, bave not learut that affine cipbers can easily be broken. The plaintext was written in contemporary English. Note that only the letters of the alphabet (A, B. .2) are encrypted, punctuation marks and spaces are mot. Tasks I. Write a Java function to caleulate the frequencies of letters in the ciphertext, and find at least two pairs of corresponding plain and cipher characters! (2 points) 2. Express the decryption of a character as an alfine transformation in modulo 26 arit hmetic, and complete the source code to decrypt the ciphestext! (2 point) Note that in Java, .9 % 26 "" .9 and .9 % 26 !, 17

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database And SQL

Authors: Lucy Scott

3rd Edition

1087899699, 978-1087899695

More Books

Students also viewed these Databases questions

Question

Would you change the ending of the book? If so, how?

Answered: 1 week ago