- The Affine Cipher Encrypts Plaintext Letters Using A Key K A B According To The Function F Z26 Xz26 Z26 X K 1 (60.34 KiB) Viewed 37 times
The Affine Cipher encrypts plaintext letters using a key k=(a,b) according to the function: f: Z26 XZ26 → Z26, (x, k) →
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
The Affine Cipher encrypts plaintext letters using a key k=(a,b) according to the function: f: Z26 XZ26 → Z26, (x, k) →
The Affine Cipher encrypts plaintext letters using a key k=(a,b) according to the function: f: Z26 XZ26 → Z26, (x, k) → ax + b mod 26 This considers each plaintext letter as a number mod 26. Write a Java program that implements the Affine Cipher using calculations mod 52 and including both uppercase and lowercase letters (i.e. mapping A-Z to 0-25 and a-z to 26-51): f: 252 X Z52→ Z52, (x, k) → ax + b mod 52 Use as your encryption keys a-7 and b=47. Use your code to encrypt the text: "Sphinx of Black Quartz, Judge my Vow". Calculate by hand the decryption key (showing your calculations) and verify it works by decrypting your ciphertext.