Тёмный

Symmetrical vs asymmetrical Encryption Pros and Cons by Example 

Hussein Nasser
Подписаться 418 тыс.
Просмотров 42 тыс.
50% 1

Encryption is the process of scrambling data to protect personal files, secure communication, hide identities and much more.
In this video we will learn about the different type of encryptions we will talk about symmetric encryption, asymmetrical encryption, where they are used for and the pros and cons of each one.
Chapters
0:00 Intro
1:50 Symmetric Encryption
9:40 Asymmetric Encryption
14:40 Symmetric Encryption Pros and Cons
17:05 Asymmetric Encryption Pros and Cons
20:20 Summary
1. Symmetric encryption
2. Asymmetrical encrypt
3. Pros and cons of Symmetric vs Asymmetric
Symmetric encryption
Might as well just call it classic encryption I would argue and i think this is the first encryption known to us. I have something I dont want anyone to see I use a lock key to lock it. Only I can open it unless I have a lock.
The same key you use to encrypt is the same key to Decrypt.
Examples
Examples of popular symmetric-key algorithms include
AES
Twofish
Serpent
DES
Twofish, Serpent, AES (Rijndael), Blowfish
CAST5, Kuznyechik, RC4, DES, 3DES, Skipjack, Safer+/++ (Bluetooth), and IDEA
Asymmetrical encryptions
We had symmetric encryptions for a long time, then internet came and networking and we needed to encrypt messages going back and forth. We said cool lets use AES. Then we said wait a second.. the other computer doesn't really have my key so we need to encrypt it..
Also called Public key encryption
1977
Rivest-Shamir-Adleman (RSA)
* Diffie-Hellman key exchange protocol
* DSS (Digital Signature Standard), which incorporates the Digital Signature Algorithm
* ElGamal
* Various elliptic curve techniques
* Various password-authenticated key agreement techniques
* Paillier cryptosystem
* RSA encryption algorithm (PKCS#1)
* Cramer-Shoup cryptosystem
* YAK authenticated key agreement protocol
So TLS for example first transfer the symmetric key using asymmetrical encryption then communicate all the way using sym encryption
Symmetric encryption
pros
faster
Can be used to encrypt large data scales
cons
Very hard to transport the key 🔑
ASymmetric encryption
Pros
Keys can be shared across a network
Perfect for encryption small data such as ssh
cons
Slow
Rsa slower then aes
Cannot be used to
(1,2)
Number to power 1 mod 2
Summary
Sym. Encryption is used to encrypt large files, same key to encrypt is the same key to deycrpt they are very fast and efficient but keys need to exist on both machines to communicate.
Asym encryption can one key encrypt another key decrypts public key is
Stay Awesome!
Hussein

Наука

Опубликовано:

 

27 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 118   
@asfar1984
@asfar1984 3 года назад
This channel is my new addiction, every night before going to sleep
@muhaimintaib
@muhaimintaib 3 года назад
Same goes for me.
@shashikantpawar7069
@shashikantpawar7069 3 года назад
Same here
@anindyasundarmanna6683
@anindyasundarmanna6683 3 года назад
Same here bro!
@joshuaifara2736
@joshuaifara2736 3 года назад
I love how you're always able to infuse some humor in your videos, it makes them always enjoyable no matter how long they are
@rishabhnitc
@rishabhnitc 2 года назад
less sleepy :D
@vivekbond123
@vivekbond123 4 года назад
I am almost binge watching your channel :)
@hnasr
@hnasr 4 года назад
Haha Enjoy the content ☺️ welcome and suggest any new software engineering content you would like to watch. Cheers
@samuelvishesh
@samuelvishesh 4 года назад
Me too haha
@usamatahseenulhaque9125
@usamatahseenulhaque9125 3 года назад
ME too its better than netflix
@rodrickedwards2759
@rodrickedwards2759 3 года назад
Same here
@newtonsarr1234
@newtonsarr1234 3 года назад
Same here.
@paulo.menezes
@paulo.menezes 3 года назад
Your videos are great, man! I laugh and learn at the same time. Thanks a lot! 🙏🏻
@ashishjha9262
@ashishjha9262 4 года назад
I am so grateful for your videos. You explain complex topics in such a lucid way!
@sreevishal2223
@sreevishal2223 4 года назад
These are the only two person in encryption Alice and Bob.. LMAO.. XD XD Nice explanation,great humour..
@hnasr
@hnasr 4 года назад
Thanks Sree 🙏🙏
@richardmaduka4747
@richardmaduka4747 3 года назад
LOL don't forget our one and only eavesdropper, Eve
@Mr.Nzo2030
@Mr.Nzo2030 4 года назад
"It took me 30 fraeking minutes to figure this animation out" LOLOLOLOLOL
@zeus134jojojo
@zeus134jojojo 4 года назад
I loved those power point animations. Great Video!
@yashdesai8372
@yashdesai8372 4 года назад
Crystal clear from a beginner's point of view!
@harpindermatharu8320
@harpindermatharu8320 4 года назад
Nice video. I like how you make everything so interesting and how you add soul to networking components, you make them something like fictional movie characters.
@hnasr
@hnasr 4 года назад
Thank you appreciate it 🙏 This is my style in teaching I believe tech videos don’t have to be boring. So I try to balance fun and learning without being distracting. Sometimes I succeed sometimes I fail 😅
@pingu8394
@pingu8394 4 года назад
You are the best at explaining! Hilarious and compelling!
@TheKawasaki250
@TheKawasaki250 3 года назад
I am taking a Sec+ class right now and this video really helped me, and made studying more fun. Never lose your sense of humor! Great videos.
@hnasr
@hnasr 3 года назад
Thanks 😊 all the best in the Secuirty + class
@karatechop89
@karatechop89 Год назад
I appreciate the animation and the effort involved; immensely
@ahmadkhaireldden6682
@ahmadkhaireldden6682 3 года назад
You know, you are perfect and I love the way you explain it
@mohamedayoup2761
@mohamedayoup2761 Год назад
thank you hussein for your great conent, you have a great teaching skills. نفع الله بك
@Finn-jp6pn
@Finn-jp6pn 3 года назад
You made it all really intuitive. Thanks
@bijanzohouri98
@bijanzohouri98 3 года назад
Man I enjoyed the way u urself laugh and describe. Not everyone has this talent trsut me. Good job. Subscribed
@avi12
@avi12 3 года назад
I would like this video twice I love that you linked to an Eddie Woo video, my favorite math teacher!
@javadahmadzadeh7129
@javadahmadzadeh7129 2 года назад
Thank you so much Hussain. I've watched lots of your videos and learned a lot. ماشاالله
@vlad981
@vlad981 5 лет назад
Awesome as always :) Looking forward for video about tls)
@hnasr
@hnasr 5 лет назад
THANKS ! TLS Video is now up :) ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-AlE5X1NlHgg.html
@MrLLGO
@MrLLGO 3 года назад
Bro i love your humor! Thx. for this tutorial.
@kerryonyeogo4174
@kerryonyeogo4174 9 месяцев назад
This guy is so brilliant, wow 👏👏👏. A great educator infact
@MahmoudKhudairi
@MahmoudKhudairi 4 месяца назад
I love watching this guy, even if I knew AES, RSA and TLS, I still enjoy him
@tibebetech4867
@tibebetech4867 7 месяцев назад
Excellent job! AWSOM the way why both symmetric and asymmetric encryption exist!...I actually LOLed (@ 7 min:44 second) when the blue guy comes in intersecting the content decryption KEY....the best comedy in the history of explaining encryption as a communication and content security
@amsterdenko9854
@amsterdenko9854 2 года назад
Best explanation ever, Master!
@hansmelo32
@hansmelo32 4 года назад
Awesome. Btw the animations are great! :D
@hnasr
@hnasr 4 года назад
Thanks Hans!! 😊
@mangihuthasudungan2778
@mangihuthasudungan2778 5 лет назад
another great video tutorial.. i really appreciated your hard work.... thank you...
@hnasr
@hnasr 5 лет назад
Mangihut Hasudungan thank you for watching 😊
@sravanakumar9326
@sravanakumar9326 Год назад
Wow, what a great video. Indeed the graphics are very good and makes us to understand very easily. And the way explain describes how passionate you are, to teach the technology.
@bhushanmulmule7885
@bhushanmulmule7885 3 года назад
You are just awesome.. never ever ever ever ever found such a crystal clear explanation... Thanks a lot :)
@hnasr
@hnasr 3 года назад
Glad it helped
@bhushanmulmule7885
@bhushanmulmule7885 3 года назад
@@hnasr still watching... Just finished sync async! Today have to finish this beginner playlist man.. it's incredible.. haha
@basuv76
@basuv76 2 года назад
this is really a good video and I learned something new.
@KTechy-
@KTechy- 10 месяцев назад
Great explanations!
@romantsyupryk3009
@romantsyupryk3009 4 года назад
Thanks so much for this video tutorial.
@mileyloveable1
@mileyloveable1 Год назад
Thank youu so much. Very nicely explained. Thanks for the animation 😜
@soolch
@soolch 4 года назад
LOL... the animation is so cooool... great explanation
@siddheshlatkar9839
@siddheshlatkar9839 Год назад
Wish this channel existed when I was in school.
@trava4156
@trava4156 4 года назад
very simple, thank you
@Bruh-jw2ze
@Bruh-jw2ze 3 года назад
Bruh that was funny as hell 🤣 Keep up the good work 👍
@hnasr
@hnasr 3 года назад
Glad you enjoyed :D
@surajmittal7572
@surajmittal7572 Год назад
I read somewhere that Diffie-Hellman cannot be used for asymmetric exchange but here he mentioned that as one of the examples of Asymmetric implementations. Can someone explain?
@benmoyal6107
@benmoyal6107 8 месяцев назад
great content!i just love it
@sankettambare7474
@sankettambare7474 3 года назад
Thanks for the great content. It's a best one for freshers!
@hnasr
@hnasr 3 года назад
Glad it helps ❤️❤️
@aryankumar87771
@aryankumar87771 Год назад
magical explanation
@stifferdoroskevich1809
@stifferdoroskevich1809 Год назад
loved the animation!!
@raghuvallikkat3384
@raghuvallikkat3384 4 года назад
Is my understanding correct? In Asymmetric encryption, for a communication betn A&B, both A & B have its own pvt and public keys say PUB_A/PVT_A and PUB_B and PVT_B. So if A sends message to B, the message will be encrypted with B’s Public key sothat B can decrypt with its PVT_B. And vice versa( when B sends to A , it will be encrypted with A’s public key PUB_A)
@DanFlakes
@DanFlakes 2 года назад
Props to the animation!
@Khaled-ux6bv
@Khaled-ux6bv Год назад
Salam alykom brother, great video :)
@rainchai851
@rainchai851 4 года назад
every video is a gold mine
@hnasr
@hnasr 4 года назад
Thanks RAIN! 😊 made me blush
@bumfuzzle717
@bumfuzzle717 2 года назад
lmao "Aladdin is a thief" I knew that magic carpet wasn't his! but great video and explanation, need to pass the Security+ exam
@mojibrahman2893
@mojibrahman2893 4 года назад
Hello, I have a nano x which is encrypted and has coins loaded. Is there a away to decrypt this nano x using any kind of software. I have lost contact with the person who sent me nano x which has encrypted crypto coins. Your help will be appreciated. Many thanks.
@shashikantpawar7069
@shashikantpawar7069 3 года назад
Quality 🔥 🔥🔥🔥
@ramchandrams6139
@ramchandrams6139 3 года назад
Thank you so much for valuable content. You said, In Asymmetric key cryptography, we can use public key to do encryption only. But, I found we can use public key to do both encryption and decryption. Could you please clarify here. Thank you so much once again.
@hnasr
@hnasr 3 года назад
the other use case is for digital signature. Where you can encrypt with private key and decrypt with public key. You cant use the same public key to encrypt and decrypt otherwise its useless
@kez99
@kez99 3 года назад
when i want to learn a topic/tech i just add Hussein at the end of the query hoping you already talked about it lol.
@ayoubatba9507
@ayoubatba9507 2 года назад
dude you're the best 😘😘😘😘
@molekuax8646
@molekuax8646 3 года назад
Thanks man
@nelsonbravo7971
@nelsonbravo7971 3 года назад
Great video as always, I'm new in all of this, there is a question... what is the relation between this video (symetric, asymetric encryption, RSA, AES, etc) and TLS and it versions, can explain please, and tnx for all you do.
@hnasr
@hnasr 3 года назад
TLS uses encryption , check out my TLS video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-64geP_LAZ5U.html
@xuzhihong3036
@xuzhihong3036 4 года назад
good job hahaha presentation made it so much easlier
@hnasr
@hnasr 4 года назад
😍😍
@LauraMartinez-tj9zd
@LauraMartinez-tj9zd 3 года назад
"THIS GUY'S AN IDIOT" lmao I love your explanations and animations. Thank you so so much :D
@hnasr
@hnasr 3 года назад
I appreciate you Laura thanks🙏😅😂
@pamudithajayasundara1259
@pamudithajayasundara1259 2 года назад
Hussein first i would like to thank for this great content.I hava a question.If we send something from server to client ,how the client stores the private key to encrypt.?i understood the way how client sends the requests to the server using public and private key so the server can decrypt the data using stored private key.but how the inverse of this happens?
@hnasr
@hnasr 2 года назад
So the server will use the clients public key to encrypt the data so the client can use its private key to decrypt. This means the client should have the server public key and the server should have the client’s public key. Normally however this is better done using symmetric encryption and client and server exchange the shared key with key exchange algorithm such as diffi hellman
@bhavulgauri7832
@bhavulgauri7832 3 года назад
Notes: - Symmetic encryption : same key can be used to encrypt and decrypt. All good when you're on one system. But when networking comes into picture, how would you tell other person about this key? If you tell without any encryption then middle-man can sniff this key. - Asymmetric encryption : requires public key and private key. public key is what you open to public, so anyone can use that to encrypt when they send messages to you. private key is used to decrypt those messages by your system. Given the mathematical computation it does with primes, it's quite slow, so never gets used for large data. What happens in real world? For example in HTTPS -- we use Asymmetric encryption for initiation of communication. So the initial "key" (for symmetric encryption) is shared via asymmetric encryption route. Once that gets transferred, further communication happens via symmetric encryption.
@life_ofcoder
@life_ofcoder 3 года назад
Hi, Beautiful video.. can you share this knowledge with dummy HTTP routes using node.js Thanks
@robbywood440
@robbywood440 2 года назад
Amazing.
@ranjangupta5544
@ranjangupta5544 2 года назад
One question do we have something similar for algorithms that will be great ....
@hnasr
@hnasr 2 года назад
Didn’t quite get the question?
@karankhemani3175
@karankhemani3175 4 года назад
Thanks for the video , It was ver helpful ..... r u from India ?
@hnasr
@hnasr 4 года назад
Hello Karan! Thanks for your comment. No I am from Bahrain 🇧🇭
@dommikador6524
@dommikador6524 3 года назад
well done...
@samschofficial2539
@samschofficial2539 3 года назад
kindly sir give me answer to this question based on scenario... Consider an army of a country is fighting a war against terrorism in its country. For this, its troops are in critical operations in the remote areas of the country. In order to share the updated information of the situations, there is need of an efficient communication mechanism among the troops. The army is therefore planning to launch an efficient communication application which will facilitate its soldiers to share the instant text as well as the voice messages among them. The application will run on the special purpose mobile devices that will transmit the messages among its users (soldiers) using the Intranet of army. However, to avoid from any possible eavesdropping and leakage of important information, the army wants to implement a proper encryption mechanism in the application to transfer the messages to their intended recipient(s) in encrypted and secured manners. After carefully reading the above given scenario and assuming yourself as a network security manager, you are required to suggest the most suitable Encryption technique from the following along with two solid reasons: 1.Symmetric Encryption 2.Asymmetric Encryption
@kurianbenoy2
@kurianbenoy2 3 года назад
Love animation
@santoshpanigrahy
@santoshpanigrahy 3 года назад
Nice explanation Hussein. Can you please help me to understand trust store and key store in the same context?
@hnasr
@hnasr 3 года назад
I think I explained it on my JWT video .. youtube "JWT Hussein"
@santoshpanigrahy
@santoshpanigrahy 3 года назад
@@hnasr Oh. That's nice. Will see that then. Thank you :)
@tahirdevlog2047
@tahirdevlog2047 3 года назад
Awesome
@JamesSmith-cm7sg
@JamesSmith-cm7sg 3 года назад
But Alices public key is still shared over the wire, any middleman can still grab it and decrypt Alice's messages? Also the middleman can pretend to be Bob
@umeshb8210
@umeshb8210 3 года назад
Love the accent sir❤️
@hnasr
@hnasr 3 года назад
❤️
@NWigi
@NWigi 3 года назад
I like that animation LOL. 😂
@luisrosalescarrera5406
@luisrosalescarrera5406 3 года назад
I've just press the like button for the animation, thank you xDDDDDDDDDDDD
@hnasr
@hnasr 3 года назад
🎊🎊
@BharCode09
@BharCode09 4 года назад
You sound like Sal Khan! :) Even the speaking style! Great animation! I totally appreciate that along with the content .. Edit: BTW, that guys name is "EVE", the Eavesdropper!
@hnasr
@hnasr 4 года назад
Thank you so much for your comment. Some ppl say I look like him Sal Khan too, or maybe thats Kunal Kapoor
@BharCode09
@BharCode09 4 года назад
@@hnasr If you're an Arab, then it's no wonder :D Great content on your channel. Easy to brush up for basics.. Thanks a ton!
@PurushotamRai
@PurushotamRai 3 года назад
this guy is awesome, I can't stop laughing... :D
@jacksongillet369
@jacksongillet369 3 года назад
I never thought id ever hear from a real life michael scott
@hnasr
@hnasr 3 года назад
I am not superstitious, Im a little stitious
@vim55k
@vim55k 4 года назад
Please add it to TLS playlist
@hnasr
@hnasr 4 года назад
Done!
@sudqi
@sudqi 3 года назад
Asymmetric encryption on its own doesn't solve the problem of sharing keys because you still vulnerable to man in the middle attack which can be solved with certificates
@gigiTD
@gigiTD 2 года назад
Like just for the animations😂
@amirmohg1319
@amirmohg1319 2 года назад
Easy peasy Japanesey :')
@xfrostbite8328
@xfrostbite8328 3 года назад
Haha there we go 🤣🤣
@emreergul1601
@emreergul1601 4 года назад
You are sayin lets choice arabic name and you are choosing aladdin and then u are saying this name is appropriate for thief. Ashamed of your racism!
@hnasr
@hnasr 4 года назад
emre ergül Aladdin is a thief in the Disney movie and fyi i am Arab.
@feyzakaymakc7385
@feyzakaymakc7385 Год назад
Your explanation is good but you are a complete racist. It is very rude of you to say that the thief is Arab and his name is Aladdin.
Далее
Finger Heart - Fancy Refill (Inside Out Animation)
00:30
Что не так с воздухом в Корее?
00:45
РУБИН - ЗЕНИТ: ВСЕ ГОЛЫ
01:03
Просмотров 178 тыс.
Tech Talk: What is Public Key Infrastructure (PKI)?
9:22
SHA: Secure Hashing Algorithm - Computerphile
10:21
Просмотров 1,2 млн
REST API Pros and Cons (Explained by Example)
25:46
Просмотров 45 тыс.
How does encryption work? - Gary explains
20:30
Просмотров 109 тыс.
Cross Origin Resource Sharing (Explained by Example)
23:15
#samsung #retrophone #nostalgia #x100
0:14
Просмотров 10 млн
ЗАБЫТЫЙ IPHONE 😳
0:31
Просмотров 19 тыс.
ОБСЛУЖИЛИ САМЫЙ ГРЯЗНЫЙ ПК
1:00
Telefonu Parçaladım!😱
0:16
Просмотров 26 млн
iPhone 16 - 20+ КРУТЫХ ИЗМЕНЕНИЙ
5:20