The Mathematics of Secrets: Cryptography from Caesar Ciphers to Digital Encryption