Why are files compressed?
To reduce their size so they can be transferred faster between devices
What is lossy compression?
Some information is lost in the process of reducing the file’s size -> reducing resolution if an image or lowering sample resolution of an audio file
What is lossless compression?
Patterns in the data are spotted and summarised in a shorter format without permanently removing any information so it can be reduced without decreasing its quality
What is run length encoding (RLE)?
Method of lossless compression that reduces the file’s size size by removing repeated information and replacing it with one occurrence of the repeated information followed by the number of times it has to be repeated
What is dictionary compression?
Another method of lossless compression where a dictionary containing repeated data is appended to the file. It results in a significant reduction in size but the dictionary does need to be present in the file for the image to be reproduced
What is encryption?
The process of scrambling data so that it cannot be understood if intercepted in order to keep it secure during transmission
Easily cracked
What is plaintext and ciphertext?
Plaintext = unencrypted information
Ciphertext = encrypted information
What is a Caesar cipher?
Encrypts information by replacing characters, one character is always replaced by the same character
What are the two different Caesar ciphers and how do they work?
Shift = all letters in the alphabet are shifted by the same amount, the amount by which characters are shifted form the key
Substitution = letters are randomly placed
When is a one-time pad considered to have perfect security?
What is a one time pad?
A random key that is used to encrypt a message once
Describe the rough steps for a Vernam cipher?
XOR the ASCII binary version for the plaintext letters with the ASCII binary version of the one time pad
How do other ciphers rely on computational security?
Every cipher other than Vernam is in theory crackable but not within a reasonable timeframe given current computing power