Salting your Keys

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.77
List Price:  €86.82
You save:  €26.04
£52.48
List Price:  £74.98
You save:  £22.49
CA$95.85
List Price:  CA$136.94
You save:  CA$41.08
A$98.72
List Price:  A$141.04
You save:  A$42.31
S$89.43
List Price:  S$127.76
You save:  S$38.33
HK$548.56
List Price:  HK$783.69
You save:  HK$235.13
CHF 55.06
List Price:  CHF 78.66
You save:  CHF 23.60
NOK kr673.79
List Price:  NOK kr962.60
You save:  NOK kr288.81
DKK kr454.12
List Price:  DKK kr648.77
You save:  DKK kr194.65
NZ$119.78
List Price:  NZ$171.12
You save:  NZ$51.34
د.إ257.03
List Price:  د.إ367.21
You save:  د.إ110.17
৳8,578
List Price:  ৳12,254.82
You save:  ৳3,676.81
₹6,465.29
List Price:  ₹9,236.52
You save:  ₹2,771.23
RM274.22
List Price:  RM391.76
You save:  RM117.54
₦95,557.34
List Price:  ₦136,516.34
You save:  ₦40,959
₨19,528.64
List Price:  ₨27,899.26
You save:  ₨8,370.61
฿2,264.38
List Price:  ฿3,234.97
You save:  ฿970.58
₺3,093.92
List Price:  ₺4,420.08
You save:  ₺1,326.15
B$366.55
List Price:  B$523.66
You save:  B$157.11
R1,167.93
List Price:  R1,668.54
You save:  R500.61
Лв118.90
List Price:  Лв169.86
You save:  Лв50.96
₩104,343.45
List Price:  ₩149,068.47
You save:  ₩44,725.01
₪217.65
List Price:  ₪310.95
You save:  ₪93.29
₱4,179.52
List Price:  ₱5,971
You save:  ₱1,791.47
¥11,137.54
List Price:  ¥15,911.45
You save:  ¥4,773.91
MX$1,235.86
List Price:  MX$1,765.59
You save:  MX$529.73
QR255.53
List Price:  QR365.06
You save:  QR109.52
P953.23
List Price:  P1,361.81
You save:  P408.58
KSh9,070.70
List Price:  KSh12,958.70
You save:  KSh3,888
E£3,666.32
List Price:  E£5,237.82
You save:  E£1,571.50
ብር11,012.04
List Price:  ብር15,732.16
You save:  ብር4,720.12
Kz63,840.04
List Price:  Kz91,203.97
You save:  Kz27,363.93
CLP$63,627.27
List Price:  CLP$90,899.99
You save:  CLP$27,272.72
CN¥482
List Price:  CN¥688.61
You save:  CN¥206.60
RD$4,267.21
List Price:  RD$6,096.27
You save:  RD$1,829.06
DA9,253.48
List Price:  DA13,219.83
You save:  DA3,966.34
FJ$154.81
List Price:  FJ$221.17
You save:  FJ$66.35
Q535.83
List Price:  Q765.51
You save:  Q229.67
GY$14,633.64
List Price:  GY$20,906.10
You save:  GY$6,272.45
ISK kr8,717.25
List Price:  ISK kr12,453.75
You save:  ISK kr3,736.50
DH656.77
List Price:  DH938.28
You save:  DH281.51
L1,221.04
List Price:  L1,744.42
You save:  L523.38
ден3,747.70
List Price:  ден5,354.09
You save:  ден1,606.38
MOP$563.80
List Price:  MOP$805.46
You save:  MOP$241.66
N$1,176.08
List Price:  N$1,680.19
You save:  N$504.10
C$2,572.44
List Price:  C$3,675.07
You save:  C$1,102.63
रु10,317.47
List Price:  रु14,739.88
You save:  रु4,422.40
S/241.31
List Price:  S/344.75
You save:  S/103.43
K301.44
List Price:  K430.65
You save:  K129.21
SAR262.67
List Price:  SAR375.27
You save:  SAR112.59
ZK1,361.42
List Price:  ZK1,944.97
You save:  ZK583.55
L309.60
List Price:  L442.31
You save:  L132.70
Kč1,485.73
List Price:  Kč2,122.57
You save:  Kč636.83
Ft23,743.09
List Price:  Ft33,920.16
You save:  Ft10,177.06
SEK kr651.03
List Price:  SEK kr930.09
You save:  SEK kr279.05
ARS$97,741.71
List Price:  ARS$139,637
You save:  ARS$41,895.29
Bs484.80
List Price:  Bs692.60
You save:  Bs207.80
COP$257,944.55
List Price:  COP$368,508.01
You save:  COP$110,563.45
₡32,836.90
List Price:  ₡46,911.87
You save:  ₡14,074.96
L1,850.73
List Price:  L2,644.02
You save:  L793.28
₲453,761.32
List Price:  ₲648,258.25
You save:  ₲194,496.92
$U2,845.54
List Price:  $U4,065.23
You save:  $U1,219.69
zł259.26
List Price:  zł370.39
You save:  zł111.13
Already have an account? Log In

Transcript

When we use open SSL passwords to generate a key, we can determine if we want to salt it or not. Without the hyphen salt option, it is much more easier for an attacker to perform an efficient dictionary attack on the password and to attack the encrypted data. The reason for this is that without the salt, the same password always generates the same encryption key. But when we use salt with the hyphens salt, it is being used at the first eight bytes of the encrypted data that is reserved for the salt. It is generated at random will encrypting the file and read from the encrypted file. When it is decrypted, so let's use salt.

This time we will use the echo command, the text will be the same text as we used before the attack will start now. And we will grab it into open SSL using the encryption command and the AES 128 bit key using CBC mode operation. But this time, we will also use the hyphen salt to solve the key. When we use salt in encryption, we're actually using a random data, a random number that is used as an additional input to our password or to a one way function as in

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.