Introduction to Cryptography with Mathematical Foundations and Computer Implementations