The four main types of cryptography are symmetric encryption, asymmetric encryption, hash functions, and digital signatures.