🔐 Modular Arithmetic Cryptography Project

Topic: Modular Arithmetic, Cryptography, and Inverses

🎯 Objectives

📌 Project Components

Part 1: Personalized Message Encryption

Choose a personally meaningful message (8–15 words). Convert it to uppercase, remove non-alphabetic characters, and encrypt it using the Affine Cipher:

E(x) = (ax + b) mod 26

Part 2: Mathematical Explanation

Part 3: Programming with ASCII

Write a program (Python/Java/JS) that encrypts/decrypts using mod 95 for ASCII printable characters. This allows for punctuation, spaces, and symbols.

If you have extensive programming experience, you are free to make your program as sophisticated as you like. Consider encrypting pairs of letters instead of single letters. How might your modulus need to change? Consider adding a nice user interface (either command-line or gui). If you are relatively new to programming, keep it simple! Ask for guidance if you'd like some ideas.

Explain: How does using mod 95 change your logic?

Part 4: Error Exploration & Edge Cases

Part 5: Reflection (Choose 2–3)

📊 Grading Rubric (15 Points)

CategoryPoints
Hand calculations & explanation (Part 1)3
Modular inverse & theory (Part 2)3
Working code & ASCII mod extension (Part 3)4
Error handling & edge cases (Part 4)2
Reflection & analysis (Part 5)3

Submission: Upload a single ZIP folder including: