Cryptography involves mathematical techniques for secure communication in the presence of adversaries. There are two main types: secret key cryptography which uses a single key for encryption and decryption, and public key cryptography which uses separate public and private keys. Common cryptographic algorithms discussed include DES, Triple DES, IDEA, and AES, with AES now being the standard due to the insecurity of DES and the slowness of IDEA and Triple DES.