1.3.1. Compression, Encryption and Hashing Flashcards
What name is given to the public and private keys used in asymmetric encryption?
key pair
What are the 2 types of compression?
- lossy - lossless
Which type of compression is the quality of a file not degreaded?
losless
What is the purpose of encryption?
to keep data secure during transmission
What are 2 types of lossless compression?
- run length encoding - dictionary encoding
Which form of encryption do the sender and reciever share the same private key?
symmetric encryption
How many keys are used in asymmetric encryption?
two (one public and one private)
If person A wants to send a message to person B using asymmetric encryption which key should they use to encrypt the message?
B’s public key as it would only be able to be decrypted with B’s private key, which only B has access to
What is a collision?
when 2 keys map to the same hash
What is run length encoding?
a lossless compression where repeated characters are replaced by one occurrence and the number of time the character is repeated
What is hashing?
the process of turning an input into a fixed size value
What data structures uses hashing to store information with constant lookup time?
hash table
What is compression?
the process of reducing the space required to store a file
What are 3 properties of a hashing algorithm?
- low chance of collision 2. quick to calculate 3. smaller output than input