An introduction to mathematical cryptography