December 2017
Intermediate to advanced
410 pages
11h 5m
English
In a stream cipher, each plaintext digit is encrypted one at a time with the corresponding digit of the secret key and the result is the ciphertext.
In practice, the digit is typically a bit and XOR used for combination operations.
This is a basic XOR table:
|
A |
B |
Q |
|
0 |
0 |
0 |
|
0 |
1 |
1 |
|
1 |
0 |
1 |
|
1 |
1 |
0 |
Let's assume that we have a word kplabs with the corresponding representation 0110.
If we want to encrypt this word with stream cipher, and assuming that XOR operations are performed, then it will be as follows:
Key = 1100
Read now
Unlock full access