Cryptanalysis is the art and science of breaking cryptographic systems. When encryption is poorly designed - because of weak math, short keys, or predictable patterns - attackers can exploit those weaknesses to read secret messages.
The Caesar cipher shifts each letter by a fixed number (e.g., +3). It only has 25 possible keys - easy for a computer (or even a human) to break.
Languages have patterns. In English, the most common letter is E. If a cipher always replaces the same letter the same way (like Caesar or monoalphabetic), frequency analysis can reveal the code.
RSA is strong when large prime numbers are used. But if the primes are small, it becomes easy to factor n and discover the private key \( d \).