Back to marketplace

1.3.1 Compression, Encryption and Hashing

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

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

Card preview (24)

#1
Front (Question)

what is the purpose of compression?

Back (Answer)

• reduce file size • reduce download times • reduce storage requirements • make best use of bandwidth

#2
Front (Question)

why is making the best use of bandwidth important?

Back (Answer)

• large amounts of data are streamed and sent over the internet so using bandwidth efficiently is critical

#3
Front (Question)

what is compression?

Back (Answer)

reduction of the overall size of a file

#4
Front (Question)

what are two methods of compression?

Back (Answer)

• lossy • lossless

#5
Front (Question)

what needs to happen to a compressed file to read it?

Back (Answer)

it needs to be uncompressed

#6
Front (Question)

what is lossy compression?

Back (Answer)

reduction of file size by permanently deleting data/reducing the quality of the data

#7
Front (Question)

what is lossless compression?

Back (Answer)

reduction of the file size by storing the data in a different, more compressed way this means the overall quality of the data does not change

#8
Front (Question)

which types of data cannot be compressed with lossy compression?

Back (Answer)

text documents executable programs

#9
Front (Question)

what are two methods of lossless compression?

Back (Answer)

• dictionary coding • run-length encoding

#10
Front (Question)

what is dictionary coding good for?

Back (Answer)

text-based documents

#11
Front (Question)

what is run-length encoding more suited for?

Back (Answer)

images

#12
Front (Question)

how does dictionary coding work?

Back (Answer)

• builds an index • every data item or entry in the file is recorded, along with an indexed reference or unique code • file consists of dictionary index + sequence of occurrences needed to recreate original file

#13
Front (Question)

how does run-length encoding work?

Back (Answer)

• if there are lots of contiguous pixels of the same colour, the number of pixels of that colour can be stored rather than storing them individually • it is stored in frequency/data pairs

#14
Front (Question)

what is encryption?

Back (Answer)

the process of encoding a message so that it can be read only by the sender and the intended recipient

#15
Front (Question)

how does symmetric encryption work?

Back (Answer)

• a single key is used to both encrypt and decrypt a message • both parties need to know the key and keep it secret

#16
Front (Question)

how can the message be cracked with symmetric encryption?

Back (Answer)

• interception of the key • duplication of the key production process to acquire a copy of key

#17
Front (Question)

How does asymmetric encryption work?

Back (Answer)

• use two different keys • encrypt the message with the first key • message is then decrypted with the second key after it is sent

#18
Front (Question)

What makes asymmetric encryption more secure?

Back (Answer)

• the two keys are not the same • it is virtually impossible to derive one key from the other

#19
Front (Question)

what are ‘key pairs’?

Back (Answer)

keys that are generated so anything encrypted with one of the keys can be decrypted with the other

#20
Front (Question)

what is a public key as opposed to a private key?

Back (Answer)

• public key can be made public (give it out or publish online) • anyone can have access to the public key • PRIVATE key - not sent/shared with anyone

#21
Front (Question)

how does public/private key encryption work?

Back (Answer)

• each party has their own public/private key pairs • sender + recipient exchange copies of their public keys • sender uses the recipient’s public key to encrypt before sending • recipient uses their private key to decrypt

#22
Front (Question)

what is another advantage of the public/private key method for encryption?

Back (Answer)

• someone can encrypt with their private key • it can then be decrypted by their public key • as the message can be decrypted with the public key, it must have originally been encrypted with the private key • this confirms the message as authentic

#23
Front (Question)

what is a combined encryption key?

Back (Answer)

• when the sender’s private key and the receiver’s public key are used to encrypt a message • it is then decrypted using the receiver’s private key and the sender’s public key

#24
Front (Question)

what 3 things do you know about a message when it is encrypted using asymmetric encryption?

Back (Answer)

• the sender and receiver know no one else can read the message • you can be sure the message is authentic • you can be sure the message hasn’t been modified