2 Types

Symmetric Encryption - Only one key. Uses the same key for encrypting and decrypting.

Asymmetric Encryption / Public Key Encryption - Two keys, one is private and the other one is shared publicly. Either key can encrypt or decrypt but the same key can't decrypt the message it encrypted.