Encryption works uses symmetric key encryption where each computer has a secret key to encrypt data before sending. It also uses public key encryption with a private and public key, where the private key is known only to the computer and the public key is given to others. SSL and TLS use public key encryption to securely transmit sensitive information over the internet, replacing HTTP with HTTPS and displaying a padlock icon.