18. Data compression and encryption algorithms Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is compression?

A

The act of making file size smaller.

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

What does it mean when compression is lossless?

A

No data is lost in compression and original can be recreated exactly.

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

What does it mean when compression is lossy?

A

Data deemed non-essential is deleted.

An exact replica can not be recovered.

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

Run length encoding is a compression technique.

Explain how it is performed?

A

Searches for patterns in code that can be shortened.

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

What is encryption?

A

The conversion of data into a form that is difficult to read by an unauthorised third party

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

What is decryption?

A

The process of turning scrambled data into data that can be understood

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

What is a cipher?

A

The algorithm for encryption

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

What is a key? - In terms of encryption and decryption

A

The secret information used to encrypt / decrypt the data

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

What is plaintext?

A

The original form of data

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

What is cipher text?

A

The encrypted data

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

How does a caesar (shift) cipher work?

A

Shifts letters across a few places in the alphabet to create a cipher text

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

In which direction would a positive shift go?

A

A –> B

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

In which direction would a negative shift go?

A

A

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

How does a keyword cipher work?

A

Use of a keyword to fill in the first few spaces in the alphabet, then fill the rest in in alphabetical order

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

Explain dictionary based compression?

A

Lossless.
Uses common strings of characters.
Identify common patterns and create a dictionary value based upon this.

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

what is encryption and why is it used?

A

encryption is the conversion of data into a form that cannot be read by a third party

17
Q

why are substitution ciphers, caesar cipher relatively easy to crack?

A

frequency analysis can be used to identify patterns in cipher text
(brute force methods)
e.g E and T are the most commonly used letters in the english alphabet

18
Q

explain how vernam ciphers work

A

based on the principle that each plaintext character from the message to be encrypted is combined with one character from a key (XOR)
if a random key is used the result will be a random cipher text which bears no relation to the original plaintext

19
Q

why is it said that a vernam cipher is theoretically unbreakable?

A

‘one time’ pads are used in vernam ciphers.
as long as the pads are unique and never re used, no statistical analysis or pattern matching techniques can be applied.
making a vernam cipher theoretically unbreakable

20
Q

identify the two commonly used methods to crack codes

A

frequency analysis and dictionary attacks

21
Q

what are public and private keys and how are they used?

A

in public key encryption, the recipient generates two keys together, a public encryption key and a private decryption key
the message is encrypted with the public key and can only be decrypted with the private key

22
Q

strengths of lossy compression

A

uses less space when stored

quicker to transmit because smaller

23
Q

limitations of lossy compression

A

permanently loses quality when compressed that cannot be restored when decompressed
cannot be used on data where every bit is integral to the end product, i.e. text documents or source code

24
Q

strengths of lossless compression

A

user has the ability to keep all the original data and revert to the original

25
Q

limitations of lossless compression

A

Larger files than if you were to use lossy compression

lossless compression can only be used once, whereas lossy compression can be used multiple times on a piece of data