XOR Bit wise operation

Encryption 101 Symmetric Encryption
2 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$69.99
List Price:  $99.99
You save:  $30
€60.40
List Price:  €86.29
You save:  €25.88
£52.47
List Price:  £74.96
You save:  £22.49
CA$96.10
List Price:  CA$137.30
You save:  CA$41.19
A$99.37
List Price:  A$141.97
You save:  A$42.59
S$89.76
List Price:  S$128.23
You save:  S$38.47
HK$548.38
List Price:  HK$783.44
You save:  HK$235.05
CHF 55.18
List Price:  CHF 78.83
You save:  CHF 23.65
NOK kr669.35
List Price:  NOK kr956.26
You save:  NOK kr286.90
DKK kr451.96
List Price:  DKK kr645.68
You save:  DKK kr193.72
NZ$119.86
List Price:  NZ$171.24
You save:  NZ$51.37
د.إ257.03
List Price:  د.إ367.21
You save:  د.إ110.17
৳8,573.42
List Price:  ৳12,248.26
You save:  ৳3,674.84
₹6,579.79
List Price:  ₹9,400.11
You save:  ₹2,820.31
RM275.72
List Price:  RM393.91
You save:  RM118.18
₦94,670.39
List Price:  ₦135,249.22
You save:  ₦40,578.82
₨19,507.70
List Price:  ₨27,869.34
You save:  ₨8,361.64
฿2,281.95
List Price:  ฿3,260.08
You save:  ฿978.12
₺3,097.23
List Price:  ₺4,424.80
You save:  ₺1,327.57
B$371.88
List Price:  B$531.28
You save:  B$159.40
R1,198.75
List Price:  R1,712.57
You save:  R513.82
Лв118.29
List Price:  Лв169
You save:  Лв50.70
₩105,356.64
List Price:  ₩150,515.94
You save:  ₩45,159.30
₪217.59
List Price:  ₪310.86
You save:  ₪93.26
₱4,209.89
List Price:  ₱6,014.39
You save:  ₱1,804.50
¥11,144.86
List Price:  ¥15,921.91
You save:  ¥4,777.05
MX$1,252.69
List Price:  MX$1,789.64
You save:  MX$536.94
QR255.49
List Price:  QR365.01
You save:  QR109.51
P952.74
List Price:  P1,361.11
You save:  P408.37
KSh9,051.63
List Price:  KSh12,931.45
You save:  KSh3,879.82
E£3,622.58
List Price:  E£5,175.34
You save:  E£1,552.75
ብር11,011.58
List Price:  ብር15,731.51
You save:  ብር4,719.92
Kz64,180.83
List Price:  Kz91,690.83
You save:  Kz27,510
CLP$63,944.70
List Price:  CLP$91,353.50
You save:  CLP$27,408.79
CN¥481.97
List Price:  CN¥688.57
You save:  CN¥206.59
RD$4,147.53
List Price:  RD$5,925.30
You save:  RD$1,777.76
DA9,256.03
List Price:  DA13,223.47
You save:  DA3,967.44
FJ$154.98
List Price:  FJ$221.42
You save:  FJ$66.43
Q535.21
List Price:  Q764.62
You save:  Q229.40
GY$14,618.10
List Price:  GY$20,883.90
You save:  GY$6,265.79
ISK kr8,682.71
List Price:  ISK kr12,404.40
You save:  ISK kr3,721.69
DH652.89
List Price:  DH932.75
You save:  DH279.85
L1,211.53
List Price:  L1,730.83
You save:  L519.30
ден3,721.54
List Price:  ден5,316.72
You save:  ден1,595.17
MOP$563.98
List Price:  MOP$805.72
You save:  MOP$241.74
N$1,178.66
List Price:  N$1,683.88
You save:  N$505.21
C$2,570.99
List Price:  C$3,673.01
You save:  C$1,102.01
रु10,458.86
List Price:  रु14,941.86
You save:  रु4,483
S/241.56
List Price:  S/345.10
You save:  S/103.54
K301.60
List Price:  K430.87
You save:  K129.27
SAR262.78
List Price:  SAR375.42
You save:  SAR112.63
ZK1,364.23
List Price:  ZK1,948.99
You save:  ZK584.75
L308.06
List Price:  L440.10
You save:  L132.04
Kč1,480.23
List Price:  Kč2,114.70
You save:  Kč634.47
Ft23,895.52
List Price:  Ft34,137.93
You save:  Ft10,242.40
SEK kr653.98
List Price:  SEK kr934.30
You save:  SEK kr280.32
ARS$96,493.35
List Price:  ARS$137,853.56
You save:  ARS$41,360.20
Bs482.80
List Price:  Bs689.74
You save:  Bs206.94
COP$256,822.21
List Price:  COP$366,904.60
You save:  COP$110,082.38
₡32,635.65
List Price:  ₡46,624.36
You save:  ₡13,988.70
L1,849.39
List Price:  L2,642.10
You save:  L792.71
₲456,359.50
List Price:  ₲651,970.09
You save:  ₲195,610.58
$U2,815.54
List Price:  $U4,022.37
You save:  $U1,206.83
zł258.31
List Price:  zł369.03
You save:  zł110.72
Already have an account? Log In

Transcript

Now that we understand how block ciphers work, the second thing to do is to add the blocks together. block ciphers have different modes of operation. And when we see modes of operation, we mean the mechanism that allows the algorithm to add or to aggregate these cipher blocks together. Remember, block cipher encrypts chunks of the data 64 bits in the case of death 128 bits in a Aes 128. To understand how it is done, we need to understand another term and that is XOR x so are we will start with the bitstream. It doesn't matter if it is a plaintext an mp3 file or In image in any modern encryption scheme, we represent our symbols using binary digits.

The second part as we know is the key. It is also represented as a bit stream. To apply one to the other, we use different math operations. One that we will talk in this lesson is sore. The sole operator outputs a one whenever the inputs do not match. So if the first bit in our plaintext is zero, and the first bit in our key is zero, both inputs match.

So operation will get us as zero. If the second bit in our plaintext is one, and the second bit in our key is zero, that is both inputs don't match. So operation will get us a one. And if the third bit in our plaintext is one and the third bit in our key is one that is both inputs match source operation will get us as zero. We will see how we use sorry, in the difference block ciphers modes of operation in the next lesson

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.