Encryption is used to secure information transmitted online. It works by encoding information using a key so that only someone with the key can decode it. There are two main types of encryption: symmetric-key encryption which uses the same key to encrypt and decrypt, and asymmetric or public-key encryption which uses two different but linked keys, a private key and a public key. Public-key encryption involves encrypting a symmetric key with the recipient's public key and then encrypting the message with the symmetric key. A popular implementation of public-key encryption is Secure Sockets Layer (SSL) which transmits sensitive information securely over the internet.