1.3.1 Compression, Encryption and Hashing Flashcards
Explain lossy compression
Data is removed, which is not essential to the overall file
What is the advantage of lossy compression?
Achieves more compression than lossless
What are the disadvantages of lossy compression?
It is an irreversible process
Loses quality as it removes data
Explain lossless compression
Data is compressed such that none of the original data is lost
What are the advantages of lossless compression?
No data is lost
It is a reversible process
What is the disadvantage of lossless compression?
Results in less compression than lossy compression
Explain dictionary compression
Each repeated pattern is stored as its own unique binary code.
This means a short codeword represents a longer piece of data
What are examples of lossless compression?
Dictionary compression
Run Length Encoding
What is the advantage and disadvantage of dictionary compression?
Reduces the size without losing the original data
Reduces the size less than lossy compression would
Explain run length encoding
Finds sets of repeated binary patterns and replaces them with single instances.
The instance includes the pattern with a number specifying the times it repeats
What is the advantage and disadvantage of run length encoding?
Reduces the size without losing the original data
Reduces the size less than lossy compression would
Explain symmetric encryption
The same encryption key will be used to encrypt and decrypt the message
What are the advantages and disadvantages of symmetric encryption?
- The message cannot be decrypted if a hacker doesn’t have the encryption key
- The key could be intercepted
- Not secure for critical information
What are the advantages and disadvantages of asymmetric encryption?
- One key cannot be worked out from the other
- The message can be authenticated
- The receiver must have access to the sender’s public key
Define encryption
The process of changing plaintext to ciphertext using a key