Data Representation Flashcards

1
Q

Describe how a 12-bit unisnged binary integer can be converted directly into hexadecimal e.g. 010010101110

A
  • Put the bits into groups of 4 (starting at the right)
  • Convert each of bits into a hexidecimal digit
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why is hexadecimal used in preference to binary?

A
  • Easier for people to understand / remember / read
  • More compact when displayed
  • Saves the programmer time when typing in data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the disadvantages of the Caeser cipher?

A
  • Each plaintext letter is always converted to the same ciphertext letter πŸ‰
  • Frequency analysis of letters in ciphertext can easily reveal which plaintext letters they correspond to πŸ”
  • There are only 25/26 possible mapps from plaintext to ciphertext (brute forces can be used to find all possible mappings) ⌨️
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Why Vernam cipher is very secure?

A
  • Ciphertext contains no useful information about plaintext 🀷
  • Mapping from plaintext to cipher text is different for each letter position in the plaintext/ciphertext πŸ—ΊοΈ
  • Frequency analysis not possible, different plaintext letters can map onto the same ciphertext letter.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly