18. Data compression and encryption algorithms Flashcards
What is compression?
The act of making file size smaller.
What does it mean when compression is lossless?
No data is lost in compression and original can be recreated exactly.
What does it mean when compression is lossy?
Data deemed non-essential is deleted.
An exact replica can not be recovered.
Run length encoding is a compression technique.
Explain how it is performed?
Searches for patterns in code that can be shortened.
What is encryption?
The conversion of data into a form that is difficult to read by an unauthorised third party
What is decryption?
The process of turning scrambled data into data that can be understood
What is a cipher?
The algorithm for encryption
What is a key? - In terms of encryption and decryption
The secret information used to encrypt / decrypt the data
What is plaintext?
The original form of data
What is cipher text?
The encrypted data
How does a caesar (shift) cipher work?
Shifts letters across a few places in the alphabet to create a cipher text
In which direction would a positive shift go?
A –> B
In which direction would a negative shift go?
A
How does a keyword cipher work?
Use of a keyword to fill in the first few spaces in the alphabet, then fill the rest in in alphabetical order
Explain dictionary based compression?
Lossless.
Uses common strings of characters.
Identify common patterns and create a dictionary value based upon this.