Encryption and compression - 96 - 99 Flashcards

1
Q

What is the trade-off between when compressing files?

A

The quality of the file and the amount of processing power that will be needed to compress/decompress

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

What does lossy compression involve?

A
  • Reducing file size by removing non essential data
  • original can’t be reconstructed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does lossless compression involve?

A

Reducing file size in a way which results in no data loss

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

when is lossy compression used

A

sound and images
- in executable file, where all data is necessary

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

advantages of lossy compression

A

we can get a considerable reduction in file size and the user will notice no difference in quality

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

examples of lossy file formats

A

JPEG
MPEG
MP3

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

advantages of lossless compression

A

allows the original file to be recreated exactly

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

how does lossless compression work

A
  • by using redundant data
  • for example, if an item occurs multiple times, then the actual item will only be stored and sensed once
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

example of dictionary coding formats

A
  • ZIP
    GIF
    PNG
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

examples of lossless compression

A

Dictionary coding and run length encoding

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

How does dictionary coding work?

A

substrings of original data are represented by
single tokens;
A table/dictionary is formed using the tokens as the keys/index;
The strings of symbols are used as the entries;

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

how does run length encoding work

A

The image is analysed to identify runs/sequences of the same value
- The values and counts of values are
stored

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

when is run length encoding used

A

source code,images

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

what is encryption

A

converting a message into a form that is only understandable by the intended parties

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

summarise the method of encryption

A

the sender will apply an encryption key to a plaintext message, the recipient receives the encrypted message and uses a decryption key to see the plaintext

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

disadvantages of the caesar cypher

A
  • easy cipher to crack
  • only 25 possible shifts
17
Q

how to provide perfect security

A
  • if the encryption key (one time pad) is equal to or longer than the plaintext message
  • if the key is truly random
  • if the key is used only once and then destroyed
18
Q

whats the difference between the Vernam cipher and all the others

A

nothing can be learnt about the plaintext using the ciphertext
- others are based on computational theory and can be cracked

19
Q

what is compression

A

reducing file size

20
Q

advantages of dictionary based compression

A

a pre existing dictionary may exist so the encoder might not have to make a new one

21
Q

Why is the Vernam cipher considered as a cipher with perfect security?

A
  • because if the key (one-time pad) is truly random, at least as long as the message, and never reused, then the cipher
22
Q

How do you encrypt a plaintext message using the Caesar cipher?

A

each letter in the plaintext is shifted 5 places down the alphabet.

23
Q

ciphertext

A

encrypted version of plaintext

24
Q

plaintext

A

the original, readable text or message