Generating a random key

Encryption 101 Symmetric Encryption
1 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
€59.77
List Price:  €85.39
You save:  €25.62
£51.79
List Price:  £74
You save:  £22.20
CA$95.77
List Price:  CA$136.82
You save:  CA$41.05
A$97.76
List Price:  A$139.66
You save:  A$41.90
S$89.38
List Price:  S$127.69
You save:  S$38.31
HK$548.49
List Price:  HK$783.59
You save:  HK$235.10
CHF 55.24
List Price:  CHF 78.91
You save:  CHF 23.67
NOK kr650.98
List Price:  NOK kr930.01
You save:  NOK kr279.03
DKK kr446.76
List Price:  DKK kr638.26
You save:  DKK kr191.49
NZ$119.42
List Price:  NZ$170.61
You save:  NZ$51.18
د.إ257.03
List Price:  د.إ367.21
You save:  د.إ110.17
৳8,605.24
List Price:  ৳12,293.73
You save:  ৳3,688.48
₹6,635.58
List Price:  ₹9,479.81
You save:  ₹2,844.22
RM276.63
List Price:  RM395.21
You save:  RM118.57
₦96,300.64
List Price:  ₦137,578.24
You save:  ₦41,277.60
₨19,503.83
List Price:  ₨27,863.80
You save:  ₨8,359.97
฿2,285.96
List Price:  ฿3,265.80
You save:  ฿979.83
₺3,154.43
List Price:  ₺4,506.52
You save:  ₺1,352.09
B$348.34
List Price:  B$497.65
You save:  B$149.31
R1,160.28
List Price:  R1,657.61
You save:  R497.33
Лв116.94
List Price:  Лв167.07
You save:  Лв50.12
₩103,502.60
List Price:  ₩147,867.19
You save:  ₩44,364.59
₪207.25
List Price:  ₪296.09
You save:  ₪88.83
₱4,314.74
List Price:  ₱6,164.18
You save:  ₱1,849.43
¥11,181.25
List Price:  ¥15,973.90
You save:  ¥4,792.65
MX$1,217.68
List Price:  MX$1,739.62
You save:  MX$521.94
QR254.86
List Price:  QR364.11
You save:  QR109.24
P946.39
List Price:  P1,352.05
You save:  P405.65
KSh9,035.70
List Price:  KSh12,908.70
You save:  KSh3,873
E£3,711.90
List Price:  E£5,302.94
You save:  E£1,591.04
ብር10,961.53
List Price:  ብር15,660
You save:  ብር4,698.47
Kz63,908.98
List Price:  Kz91,302.46
You save:  Kz27,393.48
CLP$62,404.48
List Price:  CLP$89,153.08
You save:  CLP$26,748.60
CN¥478.29
List Price:  CN¥683.31
You save:  CN¥205.01
RD$4,157.20
List Price:  RD$5,939.12
You save:  RD$1,781.91
DA9,276.18
List Price:  DA13,252.25
You save:  DA3,976.07
FJ$154.06
List Price:  FJ$220.10
You save:  FJ$66.03
Q534.62
List Price:  Q763.78
You save:  Q229.15
GY$14,639.81
List Price:  GY$20,914.91
You save:  GY$6,275.10
ISK kr8,561.17
List Price:  ISK kr12,230.77
You save:  ISK kr3,669.60
DH647.74
List Price:  DH925.39
You save:  DH277.64
L1,204.96
List Price:  L1,721.45
You save:  L516.48
ден3,686.80
List Price:  ден5,267.08
You save:  ден1,580.28
MOP$564.83
List Price:  MOP$806.94
You save:  MOP$242.10
N$1,159.46
List Price:  N$1,656.45
You save:  N$496.98
C$2,574.98
List Price:  C$3,678.71
You save:  C$1,103.72
रु10,579.35
List Price:  रु15,114.01
You save:  रु4,534.65
S/245.29
List Price:  S/350.43
You save:  S/105.14
K304.03
List Price:  K434.35
You save:  K130.31
SAR262.49
List Price:  SAR375.01
You save:  SAR112.51
ZK1,327.65
List Price:  ZK1,896.73
You save:  ZK569.07
L304.91
List Price:  L435.60
You save:  L130.69
Kč1,456.98
List Price:  Kč2,081.50
You save:  Kč624.51
Ft21,744.04
List Price:  Ft31,064.25
You save:  Ft9,320.20
SEK kr648.70
List Price:  SEK kr926.76
You save:  SEK kr278.05
ARS$98,316.77
List Price:  ARS$140,458.56
You save:  ARS$42,141.78
Bs483.52
List Price:  Bs690.77
You save:  Bs207.25
COP$254,520.95
List Price:  COP$363,616.94
You save:  COP$109,095.99
₡31,829.82
List Price:  ₡45,473.12
You save:  ₡13,643.30
L1,862.51
List Price:  L2,660.85
You save:  L798.33
₲442,460.85
List Price:  ₲632,114.03
You save:  ₲189,653.17
$U2,785
List Price:  $U3,978.74
You save:  $U1,193.74
zł254.08
List Price:  zł362.99
You save:  zł108.90
Already have an account? Log In

Transcript

Just passwords to generate or to derive a key, but we can also use the rent command to generate the key and to use the hyphen K, uppercase K. To insert the key into our cipher algorithm. We use open SSL rent command. And let's choose a 32 hexadecimal key. And there it is. Now let's use the echo command write out some text And we'll grep it into open SSL using a yes 128 bit key. Now remember, we have created a key that is 32 hex decimal characters.

Each hexadecimal character is four bit, doubling up with 32 makes up a 128 bit key. We also need to add up the IV, the initialization vector. And there it is. Now let's encode it using base 64 to make it much more clearer

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.