Compression, Encryption and Hashing Flashcards
What name is given to the public and private keys used in asymmetric encryption?
Key Pair
Name the two categories of compression:
Lossy and Lossless
In which type of compression is the quality of a file not degraded?
Lossless
What is the purpose of encryption?
To keep data secure during transmission
Name one type of lossless compression:
Either:
Run length encoding
Dictionary encoding
In which form of encryption do the sender and receiver share the same private key?
Symmetric encryption
How many keys are used in asymmetric encryption?
Two (one public and one private key)
If person A wants to send a message to person B using asymmetric encryption, which key should they use to encrypt the message?
A: A’s public key
B: A’s private key
C: B’s public key
D: B’s private key
C: B’s public key
A message encrypted with B’s public key can only be decrypted with B’s private key, which only B has access to
What is said to have occurred when two keys map to the same hash?
A collision
In which kind of lossless compression are repeated characters replaced by one occurs fr and the number of times to repeat the character?
Run length encoding
What name is given to the process of turning an input into a fixed size value?
Hashing
Which data structure uses hashing to store information with constant lookup time?
Hash Table
What is meant by compression?
The process of reducing the space required to store a file
Name two properties that a hashing algorithm should have:
Two from:
- Low chance of collision
- Quick to calculate
- Output smaller than input
What is Lossy compression?
Lossy compression is an algorithm where in order to reduce the size of a file, non essential data is removed.
What is an advantage of file compression?
Files will download quicker and use less of the users bandwidth.
What is Lossless compression?
Lossless compression works by recording the patterns in data rather than recording the data itself, using the patterns and the instructions on how to use them, a computer can reproduce the exact data.
Whats the difference between Lossy and Lossless compression?
Lossy compression takes away some of the data from the original. Lossless preserves all the information
Why might Lossy compression be inappropriate in the compression of a text file?
Data lost from a text file may render it unreadable.