Principles of Cryptography for Data Security