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
€61.68
List Price:  €88.12
You save:  €26.44
£52.62
List Price:  £75.18
You save:  £22.55
CA$97.22
List Price:  CA$138.90
You save:  CA$41.67
A$109.78
List Price:  A$156.83
You save:  A$47.05
S$92.05
List Price:  S$131.51
You save:  S$39.45
HK$542.90
List Price:  HK$775.60
You save:  HK$232.70
CHF 58.16
List Price:  CHF 83.09
You save:  CHF 24.92
NOK kr732.21
List Price:  NOK kr1,046.06
You save:  NOK kr313.84
DKK kr460.49
List Price:  DKK kr657.87
You save:  DKK kr197.38
NZ$117.60
List Price:  NZ$168.01
You save:  NZ$50.40
د.إ257.07
List Price:  د.إ367.26
You save:  د.إ110.19
৳8,528.46
List Price:  ৳12,184.03
You save:  ৳3,655.57
₹5,980.80
List Price:  ₹8,544.37
You save:  ₹2,563.56
RM306.13
List Price:  RM437.35
You save:  RM131.22
₦113,029.65
List Price:  ₦161,477.85
You save:  ₦48,448.20
₨19,728.96
List Price:  ₨28,185.43
You save:  ₨8,456.47
฿2,349.21
List Price:  ฿3,356.16
You save:  ฿1,006.95
₺2,689.20
List Price:  ₺3,841.89
You save:  ₺1,152.68
B$397.68
List Price:  B$568.14
You save:  B$170.46
R1,323.38
List Price:  R1,890.62
You save:  R567.24
Лв120.59
List Price:  Лв172.28
You save:  Лв51.68
₩100,696.53
List Price:  ₩143,858.36
You save:  ₩43,161.82
₪253.20
List Price:  ₪361.73
You save:  ₪108.53
₱3,940.19
List Price:  ₱5,629.08
You save:  ₱1,688.89
¥10,051.96
List Price:  ¥14,360.56
You save:  ¥4,308.60
MX$1,377.18
List Price:  MX$1,967.49
You save:  MX$590.30
QR255.87
List Price:  QR365.54
You save:  QR109.67
P960.87
List Price:  P1,372.73
You save:  P411.86
KSh9,049.70
List Price:  KSh12,928.70
You save:  KSh3,879
E£3,566.69
List Price:  E£5,095.49
You save:  E£1,528.80
ብር9,354.18
List Price:  ብር13,363.68
You save:  ብር4,009.50
Kz63,830.88
List Price:  Kz91,190.88
You save:  Kz27,360
CLP$65,541.06
List Price:  CLP$93,634.10
You save:  CLP$28,093.04
CN¥510.01
List Price:  CN¥728.62
You save:  CN¥218.61
RD$4,165.38
List Price:  RD$5,950.80
You save:  RD$1,785.42
DA9,267.17
List Price:  DA13,239.38
You save:  DA3,972.21
FJ$158.20
List Price:  FJ$226.02
You save:  FJ$67.81
Q540.58
List Price:  Q772.29
You save:  Q231.71
GY$14,685.51
List Price:  GY$20,980.20
You save:  GY$6,294.69
ISK kr8,925.82
List Price:  ISK kr12,751.72
You save:  ISK kr3,825.90
DH651.02
List Price:  DH930.08
You save:  DH279.05
L1,208.08
List Price:  L1,725.90
You save:  L517.82
ден3,792.46
List Price:  ден5,418.03
You save:  ден1,625.57
MOP$560.77
List Price:  MOP$801.14
You save:  MOP$240.36
N$1,309.90
List Price:  N$1,871.37
You save:  N$561.46
C$2,573.99
List Price:  C$3,677.30
You save:  C$1,103.30
रु9,577.98
List Price:  रु13,683.42
You save:  रु4,105.43
S/259.04
List Price:  S/370.08
You save:  S/111.03
K290.52
List Price:  K415.05
You save:  K124.52
SAR262.53
List Price:  SAR375.06
You save:  SAR112.53
ZK1,974.13
List Price:  ZK2,820.31
You save:  ZK846.17
L307.02
List Price:  L438.62
You save:  L131.60
Kč1,540.19
List Price:  Kč2,200.37
You save:  Kč660.18
Ft25,118.65
List Price:  Ft35,885.33
You save:  Ft10,766.67
SEK kr679.06
List Price:  SEK kr970.12
You save:  SEK kr291.06
ARS$82,202.17
List Price:  ARS$117,436.71
You save:  ARS$35,234.53
Bs485.01
List Price:  Bs692.90
You save:  Bs207.89
COP$302,305.39
List Price:  COP$431,883.36
You save:  COP$129,577.96
₡35,380.81
List Price:  ₡50,546.18
You save:  ₡15,165.37
L1,819.68
List Price:  L2,599.65
You save:  L779.97
₲561,794.79
List Price:  ₲802,598.39
You save:  ₲240,803.59
$U2,921.54
List Price:  $U4,173.81
You save:  $U1,252.27
zł263.56
List Price:  zł376.53
You save:  zł112.97
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.