Encryption works by using keys to scramble data so it can only be read by the intended recipient. There are two main types of encryption: symmetric key encryption which uses the same key to encrypt and decrypt by both parties, and public key encryption which uses two different keys, a private key known only to the recipient and a public key to encrypt data. Examples of encryption in use include the ancient Spartans using wooden cylinders to encrypt messages and websites using SSL/TLS protocols that replace "http" with "https" and display a padlock icon to show an encrypted secure connection.