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
€58.53
List Price:  €83.63
You save:  €25.09
£50.70
List Price:  £72.43
You save:  £21.73
CA$94.73
List Price:  CA$135.33
You save:  CA$40.60
A$99.19
List Price:  A$141.70
You save:  A$42.51
S$88.47
List Price:  S$126.40
You save:  S$37.92
HK$546.31
List Price:  HK$780.47
You save:  HK$234.16
CHF 53.74
List Price:  CHF 76.77
You save:  CHF 23.03
NOK kr670.43
List Price:  NOK kr957.80
You save:  NOK kr287.36
DKK kr437.10
List Price:  DKK kr624.45
You save:  DKK kr187.35
NZ$115.37
List Price:  NZ$164.82
You save:  NZ$49.45
د.إ257.03
List Price:  د.إ367.21
You save:  د.إ110.17
৳8,557.52
List Price:  ৳12,225.55
You save:  ৳3,668.03
₹6,437.02
List Price:  ₹9,196.14
You save:  ₹2,759.11
RM274.88
List Price:  RM392.71
You save:  RM117.82
₦97,093.62
List Price:  ₦138,711.12
You save:  ₦41,617.50
₨19,590.50
List Price:  ₨27,987.63
You save:  ₨8,397.13
฿2,182.35
List Price:  ฿3,117.78
You save:  ฿935.43
₺3,039.30
List Price:  ₺4,342.05
You save:  ₺1,302.74
B$364.04
List Price:  B$520.08
You save:  B$156.04
R1,102.63
List Price:  R1,575.26
You save:  R472.62
Лв114.48
List Price:  Лв163.56
You save:  Лв49.07
₩100,239.87
List Price:  ₩143,205.96
You save:  ₩42,966.08
₪215.81
List Price:  ₪308.31
You save:  ₪92.50
₱4,129.60
List Price:  ₱5,899.68
You save:  ₱1,770.08
¥10,730.56
List Price:  ¥15,330.04
You save:  ¥4,599.47
MX$1,200.44
List Price:  MX$1,714.99
You save:  MX$514.54
QR254.62
List Price:  QR363.75
You save:  QR109.13
P916.31
List Price:  P1,309.07
You save:  P392.76
KSh9,025.21
List Price:  KSh12,893.71
You save:  KSh3,868.50
E£3,281.67
List Price:  E£4,688.30
You save:  E£1,406.63
ብር10,889.17
List Price:  ብር15,556.62
You save:  ብር4,667.45
Kz63,840.18
List Price:  Kz91,204.17
You save:  Kz27,363.99
CLP$60,598.53
List Price:  CLP$86,573.05
You save:  CLP$25,974.51
CN¥486.08
List Price:  CN¥694.44
You save:  CN¥208.35
RD$4,406.10
List Price:  RD$6,294.69
You save:  RD$1,888.59
DA9,036.12
List Price:  DA12,909.30
You save:  DA3,873.17
FJ$153.32
List Price:  FJ$219.03
You save:  FJ$65.71
Q537.26
List Price:  Q767.55
You save:  Q230.29
GY$14,651.06
List Price:  GY$20,930.98
You save:  GY$6,279.92
ISK kr8,477.18
List Price:  ISK kr12,110.78
You save:  ISK kr3,633.60
DH633.17
List Price:  DH904.57
You save:  DH271.39
L1,177.29
List Price:  L1,681.92
You save:  L504.62
ден3,604.96
List Price:  ден5,150.17
You save:  ден1,545.20
MOP$562.79
List Price:  MOP$804.02
You save:  MOP$241.23
N$1,113.50
List Price:  N$1,590.78
You save:  N$477.28
C$2,576.94
List Price:  C$3,681.50
You save:  C$1,104.56
रु10,291.94
List Price:  रु14,703.41
You save:  रु4,411.46
S/234.31
List Price:  S/334.75
You save:  S/100.43
K299.76
List Price:  K428.25
You save:  K128.48
SAR262.50
List Price:  SAR375.02
You save:  SAR112.51
ZK1,391.79
List Price:  ZK1,988.36
You save:  ZK596.56
L298.31
List Price:  L426.18
You save:  L127.86
Kč1,422.66
List Price:  Kč2,032.47
You save:  Kč609.80
Ft22,337.81
List Price:  Ft31,912.53
You save:  Ft9,574.71
SEK kr619.48
List Price:  SEK kr885.01
You save:  SEK kr265.53
ARS$101,100.55
List Price:  ARS$144,435.55
You save:  ARS$43,335
Bs483.90
List Price:  Bs691.31
You save:  Bs207.41
COP$256,074.14
List Price:  COP$365,835.88
You save:  COP$109,761.74
₡34,757.30
List Price:  ₡49,655.42
You save:  ₡14,898.11
L1,848.07
List Price:  L2,640.21
You save:  L792.14
₲470,265.88
List Price:  ₲671,837.20
You save:  ₲201,571.31
$U2,620.38
List Price:  $U3,743.56
You save:  $U1,123.18
zł246.26
List Price:  zł351.82
You save:  zł105.55
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.