Back to marketplace

1.3.1 Compression, Encryption and Hashing

No description yet. This curated deck is ready for daily study.

Total cards: 13•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (13)

#1
Front (Question)

Describe compression and its purpose

Back (Answer)

Compression is the process of reducing the size of a file so that it takes up less storage space and so that it uses lower bandwidth in transmission, meaning that the file can be transferred more quickly over a network.

#2
Front (Question)

Describe Lossy Compression

Back (Answer)

Lossy compression reduces the size of a file but also results in some data being permanently removed. The removed data is usually less important to human perception. It’s most commonly used on photos or audios (e.g. JPEG and MP3)

#3
Front (Question)

What are the benefits of lossy compression?

Back (Answer)

• It greatly reduces the file size, more so than lossless compression

#4
Front (Question)

What are the drawbacks of lossy compression?

Back (Answer)

• It results in a loss in quality, causing issues such as pixelated images, this may be especially noticeable on slower connections • Any data removed is removed permanently

#5
Front (Question)

Describe lossless compression

Back (Answer)

This is a form of compression in which the file size is reduced without losing any information. Instead, data is rewritten into a more efficient format and the original file can be recovered from the compressed version. It’s most commonly used on programs, text files and images (e.g. PDF and GIF)

#6
Front (Question)

What are the drawbacks of lossless compression?

Back (Answer)

• Lossless compression cannot reduce a file’s size as much as lossy compression can, this generally means losslessly compressed data will be slower to load or transfer

#7
Front (Question)

What are the benefits of lossless compression?

Back (Answer)

• Lossless compression does not permanently remove data • After lossless compression has been used, the original data can be fully reconstructed • Quality is not lost • Lossless compression rewrites data in an efficient format

#8
Front (Question)

What is the purpose of encryption?

Back (Answer)

Encryption converts data into data that cannot be understood (called cipher text) using a key. The data can only be restored to its original form if its decryption key is utilised.

#9
Front (Question)

Explain run-length encoding

Back (Answer)

It’s a form of lossless compression, often used on bitmap images, in which repeated values are removed and replaced with one occurrence of the data followed by the number of times it should be repeated. It therefore only offers great reduction in file size if the file contains lots of repeated data. e.g. AAAAABBBBCCC = A5B4C3

#10
Front (Question)

Explain dictionary coding

Back (Answer)

It’s a form of lossless compression often used on text files. Frequently occurring data is matched to a unique index value. Any instances of this frequently occurring data is replaced with the corresponding unique code. A dictionary which contains the index and matching data must be stored alongside the compressed file, otherwise the compressed data cannot be used. In files which frequently contain repeated phrases this can greatly reduce the file size.

#11
Front (Question)

Describe symmetric encryption

Back (Answer)

This form of encryption uses the same key for both encryption and decryption. Therefore, no keys need to be transmitted. This creates the issue that if the key is intercepted or duplicated then any communications be decrypted using this key.

#12
Front (Question)

Describe hashing and its purpose

Back (Answer)

Hashing is a one-way mathematical operation that produces a value from an input value. This is useful for data that needs to be verified but does not need to be known, such as passwords, PINs, or digital signatures. For instance, when a user enters their password for the first time, the hash function is applied to this input, this data is stored and the next time the user inputs their password it has the hash function applied and compared to the hashed password value that was previously stored.

#13
Front (Question)

Describe asymmetric encryption

Back (Answer)

This form of encryption uses 2 keys in a key pair: one for encryption and one for decryption. This form of encryption is more secure than symmetric encryption as it’s virtually impossible to derive one key from another. It can also be used to verify the identity of the sender, as if the sender encrypts a message using their private key and sends it out, it can only be decrypted using the other key in the pair, the publicly available public key.