Question: You will implement the following encryption scheme we discussed in class: E _ k ( x ) = ax + b mod 2 6 ,
You will implement the following encryption scheme we discussed in class:
Ekx ax b mod where key k a b
Implement a cipher to operate on numbers in Z Encryption is provided:
def encryptx a b:
return a x b
Write a function named "decrypt" that completes the encrypt function. You will need a helper function or data structure for decryption; name it "INVERSE".
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
