Unlocking Security: From Math Theorems to Modern Cryptography