Locking and Unlocking Secrets: How Mathematics Keeps Your Messages Safe