1.3.1 Compression, encryption and hashing Flashcards

1
Q

what is compression?

A

he process of reducing the space
required to store a file

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

what are types of compression?

A

-lossy
-lossless

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

what is lossy compression?

A

when data is lost permanently in order to reduce file size

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

what is lossless compression?

A

no data is lost in the compression process

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

what happens when a lossy file is decompressed?

A

-when the file is decompressed, the data that was removed is re-created from the data that remains in the file
-the re-created data will never be an exact copy of the original
-instead, it will be an approximation of the original data

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

what happens when a lossless file is decompressed?

A

when the file is decompressed, the contents are identical to the original file

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

when is lossy compression used?

A

audio files, downloaded music from the internet (MP3)

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

when is lossless compression used?

A

images that must retain the highest level of quality (PNG)

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

what are types of lossless compression?

A

-run length encoding
-dictionary encoding

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

what is run length encoding?

A

a data compression technique that replaces repeated sequences of data with a single data value and a count of how many times it appears

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

what is encryption?

A

the process of converting a plain text message into cipher text

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

why is encryption used?

A

to keep data secure during transmission

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

what are the types of encryption?

A

-symmetric
-asymmetric

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

what is symmetric encryption?

A

-uses the same key for encryption and decryption
-faster than asymmetric encryption
-requires less processing power
(more efficient)
-less secure
-no authentication (sender can’t be identified)

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

what is asymmetric encryption?

A

-uses a public and private key
-keys work as a pair, one is used to encrypt and the other decrypts
-secure
-more scalable because the public key can be shared with multiple users
-slower/less efficient
-more processing power needed

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

what is hashing?

A

the process of turning an
input into a fixed size value

17
Q

what properties should a hashing algorithm have?

A

-low chance of collision
-quick to calculate
-output smaller than input