The main types of cryptography are symmetric key cryptography and asymmetric key cryptography. Symmetric key cryptography uses the same key for encryption and decryption, while asymmetric key cryptography uses a pair of keys - one public and one private - for encryption and decryption respectively.