Security

Advanced security concepts and cryptography.

Topics

Key terms

17.1 Encryption

Plaintext and ciphertext
Plaintext is the original readable data. Ciphertext is the scrambled result after encryption.
Encryption key
A value that the encryption algorithm uses to scramble and unscramble data.
Symmetric key encryption
The same secret key is used to encrypt and decrypt, so the key has to be shared securely.
Key distribution problem
The difficulty of getting a secret key to the other person safely, without it being intercepted.
Asymmetric key encryption
Uses a pair of keys: the public key encrypts and the matching private key decrypts.
Public key
The key that can be shared with anyone. Data encrypted with it can only be decrypted with the private key.
Private key
The key kept secret by its owner, used to decrypt data or to create a digital signature.
Quantum cryptography
Using the properties of quantum physics, such as photon polarisation, to share keys. Eavesdropping disturbs the photons and can be detected.

17.2 SSL/TLS, certificates and signatures

SSL/TLS
Secure Sockets Layer and Transport Layer Security: protocols that encrypt data sent between a client and a server, as used in HTTPS.
TLS handshake
The start of a secure connection, where client and server agree on how to encrypt and exchange the keys.
Session key
A temporary symmetric key created for one secure connection. Symmetric encryption is used because it is faster.
Digital certificate
An electronic document that links a public key to its owner's identity. It includes the owner's details, the public key, an expiry date and the issuer's signature.
Certificate authority (CA)
A trusted organisation that checks identities and issues digital certificates.
Digital signature
A hash of a message encrypted with the sender's private key. The receiver decrypts it with the sender's public key and compares it with their own hash of the message.
Authentication, integrity and non-repudiation
A digital signature shows who sent a message, that it was not changed, and that the sender cannot deny sending it.

Practice questions for Security