10 hours 32 minutes
Welcome back. I'm wrong, Warner.
This is the second video in section 6.2 on explaining cryptographic algorithms and their basic characteristics.
In Part one, I talked about obfuscation, symmetric algorithms
and seif remote.
In this video we'll talk about asymmetric or public private key algorithms,
hashing algorithms and then key stretching algorithms.
Recall from section 6.1 videos where I talked about A S advanced encryption standards. Advanced encryption standard or A S uses two keys, one to encrypt and want to decrypt thes two keys are mathematically related explained how in this video,
use a public private key encryption were you encrypt a message with the recipients Public key on Lee. The recipient can decrypt it using his or her private key
because of the extra overhead generated by using two keys for encryption and decryption asymmetric algorithm. Algorithms require more resources than symmetric algorithms.
As a result, these algorithms are primarily used for digital signatures and for the secure exchange of a shared key that is used by symmetric algorithms
for security. Plus, you need to be aware of the different asymmetric algorithms in use.
Most well known is our essay in Fort of the three inventors, Rive est Shamir and adamant
it's used for he exchange and for digital signatures where the key congee any length.
The algorithm works by multiplying two large prime numbers to generate the public. He and the private key,
which are two different numbers that are mathematically related. But because you know the public heat does not mean you can derive the private key.
Diffie, Hellman Key Exchange, or D H, works with two parties without prior arrangement. They can agree on that secret key known only to those two parties, so it solves the challenge of key exchange. It's on. Lee used to generate a shared key, not the encryption,
that key and then be safely and secretly shared on a public Internet such as the Internet. Diffie Hellman Ephemeral uses a different key for every conversation
and supports perfect forward secrecy.
Recall that term from section 6.1.
Other common asymmetric algorithms you may encounter are elliptical Curve Cryptography Album out
Elliptical curve Cryptography is a technique using elliptical curves, so advanced math to calculate simple but difficult to break encryption keys.
It uses a smaller key sizes to obtain the same level of security.
Their 401 160 bit E. C. C. Equals 10 24 bit R s. A
elliptical curve. Diffie Hellman Ephemeral combines a lot of these variant of the D. E A, G and E C C, also allowing for perfect forward secrecy.
Mother asymmetric algorithm is El Gamal. It's an extension to the defeat helmet, using an ephemeral key
last when you should be aware of, is pretty good. Privacy, also known as New Privacy Guard, was developed by Phil Zimmerman in the early 19 nineties to protect email using public private keys
used to encrypt email messages as well as proved the sender through digital signatures.
Be familiar with each of these asymmetric algorithms
recall from Section six that one. We also talked about hashing
while diving deeper into the hashing algorithms. But let's provide a quick review. So hash is that a digital fingerprint, if you will, it's a unique value. Works by taking a string of any length and creating a fixed length string for the output that'll be always unique, depending on the
the input strength,
changing the original changes, the hash value.
The originator will take the hash of the file and provides that hash to the receiver
receiver, then can take the hash of the file and compares it with the original usedto
sure file integrity.
There are multiple hashing algorithms in use and need to be familiar with for security. Plus,
the first is secure hash algorithm or Shaw There. Three primary variants. Shaw one shot, two shot. Three. It was developed by the United States National Security Agency and Essay
Shaw. One generates 100 and 60 bit hash from any variable length string of data
shot to also known as shot. 2 24 Shot to 56. Shot 3 84 and shot 5 12
based on their digest lengths,
Shaw three was published in 2012 and it's not really widely used yet.
MD or Message Digest Algorithm. Empty 24 and five
Maybe one of the most widely known hashing functions
produces a 16 bite hash value. Usually expressed as a 32 digit Hexi decimal number.
It's considered compromised. Rainbow tables have been published, which allow people to reverse empty five hashes
made with without good salt.
It's also known hash collisions associated with a different message Digest hashing algorithms.
Here's an example
on the screen is a sample of a file actually this power point that created for this video
with the different hashing algorithms applied to that file, you can see the different output, depending on the hashing algorithm.
MD five has a specific output, which is different than the Shaw one shot to 56 shot 5 12
The output is the number of bits that is produced by that hashing algorithm.
You can try this at home, and I recommend you do
other areas of hashing. You need to be familiar with
our Mac H Mac and race. Let me talk about each
a message. Authentication code or Mac provides for authentication of the message and works like a hash used to detect tampering.
The Mac is a small piece of data, known as the authentication tag that is derived by combining a message or file with a secret key.
A Mac is generated and verified, using the same secret key
Mac, based on a cryptographic hash function known as the hash based Message Authentication code, or H Mac, where the center center of a message uses an H Mac function to produce the Mac.
Essentially H Mac used the hash functions, such as MD five with a secret key.
Although Max and each max are similar, H Mac increases security by using an additional integrity check on the data being transmitted.
is designed based on MD four. It's 100 and 60 bit version of the algorithm performs comparably to show one
their issues associate it with hashing one being rainbow tables, which are pre computed lists of common words, phrases et cetera, along with their pre computed hash value
with a rainbow table. All of the possible hashes are computed in advance. In other words, you create a series of tables. Each has a possible to letter three letter for letter or so forth combination in the hash of that combination, using a known hashing algorithm like shot, too.
Now, if you search the table for a given hash with letter combination in the table that produces the has must be, in this case, the password you're seeking.
Popular password cracking tools such as Off Crack and John the Ripper used rainbow tables,
a countermeasure called Assault First to the addition of obits at key locations either before or after the hash.
So if you type in the password.
Password pits are added by the operating system before it is hashed,
and this helps defeat rainbow tables.
A challenge with cryptography is the length of the key.
Longer keys are better. So what about stretching those keys?
Key Stretching is a process used to take a week or short key and make it stronger,
usually by making it longer.
There are two common algorithms associated with key stretching.
The first is be crypt, which is based on the Bloke Blowfish algorithm.
It provides an adaptive hash function based on a key factor.
The other key stretching technique is password based ke care of ation function, too.
P b k D. F, too.
It's an algorithm that applies a pseudo random function to the password, combined with assault of atleast 64 bits
and repeats the process at least 1000 times,
creating a very strong ki.
In the second video of section 6.2, I explained some cryptographic algorithms and their basic characteristics.
Let's practice on a few sample quiz questions.
This hashing algorithm,
now considered compromised, produces a 16 bite hash value, usually expressed as a 32 digit hex, a decibel number.
The answer is C
MD five Message Digest. Five.
Alison Bob Want to share a file over the Internet?
The plan on using a yes to 56 for file encryption but need to share a secret key between them.
Which algorithm is best for this year's
answer is a defeat helmet if he helmets used for key exchanges over public networks.
Review this material
Review your study material form or information on different types of algorithms used within cryptography.
If you'd like more hands on experience with encryption and hashing, see of the security plus labs
With these labs, you'll learn how to install a cryptographic program. Use it to encrypt a document and then decrypt it. You'll also learn about key values as well as hashing.
This, concludes the video for section six dot to explaining cryptographic algorithms and their basic characteristics.
CompTIA Security Plus certification is a great place to start learning IT or cybersecurity. Take advantage of Cybrary's free Security+ training.