Solved

Caesar Cipher Uses a Shift of Each Character by a Key

Question 40

Multiple Choice

Caesar cipher uses a shift of each character by a key with a value between 1 and 255. An a with a shift equal to 3 becomes a d. For the decrypt method below, select the correct body. Assume the key shift property is accessible to the method. public int decrypt(int B) { ________ }


A) return (b + key) ;
B) return (b - key % 26) ;
C) return (b - key) % 256) ;
D) return (b - key) ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents