What is the advantages of compression?
What is data compression?
Compression software uses algorithms to remove repeated or unnecessary data, to reduce the number of bits/bytes to store the file
What files can and cannot be compressed?
What is the difference between lossy and lossless compression?
Lossy: permanently losing information in order to reduce file size, e.g. reduce resolution in images or sound
Lossless: using algorithms to efficiently represent repeating patterns without losing data e.g. in text and EXE
What is run-length encoding?
What are dictionary-based methods?
What is encryption?
Define plaintext, ciphertext and cipher.
Plaintext: unencrypted information
Ciphertext: encrypted information
Cipher: encryption algorithm used
How does Caesar ciphers work?
Why are Caesar ciphers bad?
How do Vernam ciphers work?
1) Align plaintext and key (both in binary and key.Length >= plaintext.Length)
2) Apply logical XOR bitwise on each
3) Convert binary back to characters
Why is a Vernam cipher secure?
What is computational security?
If a cipher cannot be cracked within a reasonable timeframe with current computing power, it is computationally secure.
Why is the Vernam cipher perfectly secure?
MARK SCHEME:
- Brute force would not work as key is randomly generated, too many possible keys to try all of them (and multiple plaintexts can be derived)
- Different plain text letters can map onto the same ciphertext letter, so frequency analysis does not happen as cipher text letters have uniform probability
What is run-length encoding in images?
What conditions must be satisfied for the Vernam cipher to offer perfect security?
1) key must be generated completely at random
2) key must be greater than or equal to the length of the plaintext
3) key must be used only once
Describe how run length encoding can be used. (2 marks)
Explain why run length encoding is not able to compress a photo-realistic image as much as a simple image.
Explain why RLE is more suitable for compressing images and dictionary-based methods are more suitable for compressing text. (2 marks)