5 hours 49 minutes
Hello, everybody. And welcome to the I T Security episode number to any three petro graphic cash is my name is 100 Gina. And now begin instructor for today's session.
Uh, learning operatives is to understand and be able to identify the man concepts off cryptographic *** cash functions.
Well, we have here, and Bob and Alice,
and they're trying to exchange message. You know, again, Well, strident. Say hello
But this time he doesn't care if the message is confidential or not. We're not dealing with confidentiality in this scenario. What, Bubs, what boat is most most concerned with is that hey wants to make sure that the message he send was the message. All this received
it, Meaning that if he says hello to to to Ali's,
it doesn't get modified in the way and if somehow say, uh,
I don't know
or something like that.
Uh, so, uh,
for that hashes comes into play. Hushes, you know, are just algorithms used to calculate a value
in order to send value along with the original message to the receiver. So the receiver king go through the same process and calculate calculate the exact same value, bypassing the message he or she received through the same algorithm,
son, hashes algorithm will do a lot. But you know, the most used When are the shot shot shot? Finally, which will be
you know, she atresia five and also the MD five family
and, you know, and before empty six which all of them are already. You know something? Most of the empty five family or the empty family is replicated already. We're going to shut too, And above
No, shut you the most. Use one right now, Taiwan is still being used. But, you know, we're making my rating to shut Shut you and above.
So let's just shot 2 56 for this example. So, uh, Bob here came and passed the hello message to raise that. These right here,
uh, both came here and pass the hello message to, um
ah, a shot to algorithm.
Shots to 56
and result waas. You know, hash function, which included, you know, um
a B C 12 tree that that
from this house function is sent to always
along with the really original message.
So, as you can see, we're not dealing. If the bad guy again comes into play right here again, his mind
no and intercepts this message right here, he will be able to see the below a message. It doesn't matter if it intercepts the hash right here, but if it intercepts the original message, you know he will be able to see the message itself.
So we're not dealing with confidentiality when we talk about hashes.
Also, as you can see, well, let's not get ahead of ourselves and finally know finalized explanation. So Ali's right here receives both messages. You know, the hello message
right here. And he also received the hash. You know, a
BC once you treat that
what she does next is to pass this message through the same algorithm, remember shar
And it has to calculate the exact same message, which at the same time, the exact same hash. I'm sorry, which is ABC Want to treat that that if it doesn't calculate and for some reason, Ali's. After passing hello through the same algorithm which in this case is shot to 56
calculates a B C 12 tree dot Hi, uh slash
Uh, this is not the same message. Us, Um
that's it was intended by above.
Maybe she received instead of hello, Shoots it goodbye. And that's why she's calculating a different Molly, which is right here. So this means that the message somewhere along the communication are, you know, the Internet or the path of communication. The message changed,
meaning that the integrity of the message is compromised. S o the receiver can no longer trust in the message itself. Maybe was corrupt because park it was lost in during the transit. Or maybe because some someone is this guy right here modified the message intently
or, you know, because he wanted to
actually confused the receiver. But, you know, things were using hash is where
weren't guaranteed it, the integrity of the messages. So if anything changes were about now the problem with with hash is the main problem is is collision,
uh, meaning that maybe the hello world
and also that goodbye
generate the same the same hush volume. So what will happen if
for some reason, but wants to say hello are Chu Tu Tu Alice and Sense You know the world right here. Since the world and said it passes through the algorithm. Just trap shaft to 56. And it generates this this hash message So it sends this both of this information,
but somewhere along the way, this guy right here
changes the message into goodbye instead of hello. But it happens that the algorithm, which is in this case a shock to 56 generates the exact same hash from a different message. In this case, it generates ABC want to treat that that from me, but and also from hello.
This is called a collision in terms of hashes.
So when we have a collision, there is a problem because
at the end were generated through the same hash from two different, uh, sources are two different clear text. So, as you can imagine, ah, good practices to use
in data basis when we were safe, for example, in access control. When I'm trying to authenticate as in user to a database, I put my clear text spas work,
uh, maybe in the in the weapons. But, you know, the white *** Southwark hash is the buzzword and incense, the possible over the wire. So what it travels the Internet is actually hush, not the power itself
salted but their own. Although it is safe here in the Dallas
are the hash. Is this in case you know, either that the hash is compromised? You know the body's compromise off the transit or when the data is in Brest arrest, meaning that it's someone compromises the database, it will take only the hash is not that clear Decks, passwords.
But what will happen if my past work in a different buzz word, which is easiest or, you know, you miss your password to guests.
They both generate the same the same hush. I will be a problem because someone with a different buzz word or a different body will be able to actually authenticate with with my user. You know, that's a problem. This is This is actually, uh, well, now, Belin ability in the hash is which is the further than that,
uh, this is basically that a group of 23 individuals are joining to 23 users.
Is required rich the probability off 50% that you know, two people Within this tuning, three users will share share the same birthday. So we put together 23 people. There's a 50% chance. Is that two of them? Sure. Same birthday
on the probability richest 100%
when the number of people eyes a 367.
So this is a from a problem that you know, bird. The attack
meaning that to have to hash is can be generated. I mean, I'm sorry. One cash could be generated from two different till you're next.
How many keys are used in a hash function? Well, none. As we said before, this is an algorithm, nor a key. We're not looking for encryption. We're looking for integrity. And we can do that only by using on our
If you calculate a different hash Baalu value. What does it is, man? It means that the charity was compromised and the message was changed.
What is the birthday attack? Well, it means this'll is, Ah, statistical attack. You know where it attacks the probability off to different to your text messages generate. The same hash function has value, which is a collision.
In today's brief lecture, we talk about the main concept off cryptographic hash functions
again, the fix publication, nothing you hear.
And in the next video, we'll cover digital signatures. Well, that's it for today, folks. Thank you for watching and talk to you soon.