Cryptography is a method of protecting information and communications through the use of codes, so that only those for whom the information is intended can read and process it.