1.3.1 - Compression, Encryption, Hashing Flashcards
Compression advantages
- Reduces download time
- Uses less bandwidth
- Takes up less storage
Compression disadvantages
- Takes time to compress
- Uses processor time
Lossy compression
Where compression removes non-essential data. Compresses to a smaller size
JPG
Compresses pixels in an image by removing colours the human eye cannot distinguish between
MP3
Removes audio frequencies the human ear can’t detect
MP4
Only records changes in differences between picture frames of video rather than each entire frame
Lossless compression
Patterns of data are summarised and recorded in a shorter format without removing any data
The original file can be recovered
Run Length Encoding
Summarises data by saying the data and how many times repeated data is repeated
Dictionary compression
Spots patterns of data that are repeated and stores them in a dictionary, stores in the main file
Any occurence of the repeated data will be replaced by its index
ZIP
Identifies repeated file content and replaces every occurence with a repeated code
End-to end encryption
The ciphertext is only decoded when it reaches the device of the recipient
Encryption
A way of making sure data cannot be understood if you don’t possess the means to decrypt it.
The message is encrypted using a cipher algorithm and key and decrypted when received
Ciphertext
The text produced by the cipher algorithm and key
Plaintext
The text produced when the ciphertext is decoded
Caesar cipher
A cipher in which each letter of the alphabet is shifted by the same amount