Compression, Encryption and Hashing Flashcards

1
Q

How does dictionary based compression work?

A

Each unique word is recorded in a dictionary and assigned a number value. The file is then compressed by using that dictionary to replace the text with the relevant numbers. When the compressed file is sent the dictionary is sent with it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How does symmetric encryption work?

A

The same key is used to decrypt and encrypt the data. This means the key has to be sent to the same place as the data, which makes it easy to intercept.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How does Asymmetric encryption work?

A

Everybody has two keys, a public key and a private key. A public key can be used to encrypt the data, but the private key must decrypt it, and vice versa. When data is being sent the sender encrypts the data with the recipient’s public key, so that they can then decrypt it with their private key.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How does a digital signature work?

A

By encrypting a message with your private key, the person you are sending it to knows that it must have come from you as the message can only by decrypted with your public key.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a digital certificate?

A

Issued by official certificate authorities and verifies the trustworthiness of a message sender of a website.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is lossy compression?

A

Non-essential information is removed from the file, so that the file is still useable but much smaller in size. For example for reducing the color depth for the pixels in a JPEG.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What kind of files should lossy compression be used on?

A

Files that can still be used without the complete information, for example audio, video and image files.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is lossless compression?

A

The original file size is reduced but all of the information is retained. This is done by recording patterns in the data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What kind of files should lossless compression be used on?

A

Files where the file can only be used if all the information if retained, for example text files and executable files.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is RLE?

A

Run Length Encoding. A method for compressing images. Records the colour value of a pixel and the number of times it repeats.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the original data before encryption known as?

A

plaintext

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the data after it has been encrypted known as?

A

ciphertext

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is hashing?

A

Taking a string of data and encrypting it so that you can not get the original data back.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is hashing used for? (3 things)

A

Storing passwords
Hash tables
Compare if two files are the same

How well did you know this?
1
Not at all
2
3
4
5
Perfectly