Symmetrical vs asymmetrical Encryption Pros and Cons by Example

  Рет қаралды 41,583

Hussein Nasser

Hussein Nasser

Күн бұрын

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

Пікірлер: 119
@asfar1984
@asfar1984 3 жыл бұрын
This channel is my new addiction, every night before going to sleep
@muhaimintaib
@muhaimintaib 3 жыл бұрын
Same goes for me.
@shashikantpawar7069
@shashikantpawar7069 2 жыл бұрын
Same here
@anindyasundarmanna6683
@anindyasundarmanna6683 2 жыл бұрын
Same here bro!
@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.
@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
@paulo.menezes
@paulo.menezes 3 жыл бұрын
Your videos are great, man! I laugh and learn at the same time. Thanks a lot! 🙏🏻
@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
@ashishjha9262
@ashishjha9262 3 жыл бұрын
I am so grateful for your videos. You explain complex topics in such a lucid way!
@yashdesai8372
@yashdesai8372 4 жыл бұрын
Crystal clear from a beginner's point of view!
@zeus134jojojo
@zeus134jojojo 3 жыл бұрын
I loved those power point animations. Great Video!
@pingu8394
@pingu8394 4 жыл бұрын
You are the best at explaining! Hilarious and compelling!
@karatechop89
@karatechop89 Жыл бұрын
I appreciate the animation and the effort involved; immensely
@Finn-jp6pn
@Finn-jp6pn 3 жыл бұрын
You made it all really intuitive. Thanks
@ahmadkhaireldden6682
@ahmadkhaireldden6682 3 жыл бұрын
You know, you are perfect and I love the way you explain it
@Mr.Nzo2030
@Mr.Nzo2030 3 жыл бұрын
"It took me 30 fraeking minutes to figure this animation out" LOLOLOLOLOL
@mohamedayoup2761
@mohamedayoup2761 Жыл бұрын
thank you hussein for your great conent, you have a great teaching skills. نفع الله بك
@harpindermatharu8320
@harpindermatharu8320 3 жыл бұрын
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 3 жыл бұрын
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 😅
@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
@amsterdenko9854
@amsterdenko9854 2 жыл бұрын
Best explanation ever, Master!
@avi12
@avi12 3 жыл бұрын
I would like this video twice I love that you linked to an Eddie Woo video, my favorite math teacher!
@MrLLGO
@MrLLGO 3 жыл бұрын
Bro i love your humor! Thx. for this tutorial.
@bijanzohouri98
@bijanzohouri98 3 жыл бұрын
Man I enjoyed the way u urself laugh and describe. Not everyone has this talent trsut me. Good job. Subscribed
@pedrosanchezf
@pedrosanchezf 2 жыл бұрын
7:43 That moment deserves a like on its own!
@vlad981
@vlad981 4 жыл бұрын
Awesome as always :) Looking forward for video about tls)
@hnasr
@hnasr 4 жыл бұрын
THANKS ! TLS Video is now up :) kzbin.info/www/bejne/d52oZotng9F7nck
@romantsyupryk3009
@romantsyupryk3009 3 жыл бұрын
Thanks so much for this video tutorial.
@mangihuthasudungan2778
@mangihuthasudungan2778 5 жыл бұрын
another great video tutorial.. i really appreciated your hard work.... thank you...
@hnasr
@hnasr 5 жыл бұрын
Mangihut Hasudungan thank you for watching 😊
@kerryonyeogo4174
@kerryonyeogo4174 7 ай бұрын
This guy is so brilliant, wow 👏👏👏. A great educator infact
@javadahmadzadeh7129
@javadahmadzadeh7129 2 жыл бұрын
Thank you so much Hussain. I've watched lots of your videos and learned a lot. ماشاالله
@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.
@trava4156
@trava4156 4 жыл бұрын
very simple, thank you
@MahmoudKhudairi
@MahmoudKhudairi 2 ай бұрын
I love watching this guy, even if I knew AES, RSA and TLS, I still enjoy him
@hansmelo32
@hansmelo32 4 жыл бұрын
Awesome. Btw the animations are great! :D
@hnasr
@hnasr 4 жыл бұрын
Thanks Hans!! 😊
@mileyloveable1
@mileyloveable1 Жыл бұрын
Thank youu so much. Very nicely explained. Thanks for the animation 😜
@soolch
@soolch 4 жыл бұрын
LOL... the animation is so cooool... great explanation
@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.
@tibebetech4867
@tibebetech4867 5 ай бұрын
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
@aryankumar87771
@aryankumar87771 Жыл бұрын
magical explanation
@sankettambare7474
@sankettambare7474 3 жыл бұрын
Thanks for the great content. It's a best one for freshers!
@hnasr
@hnasr 3 жыл бұрын
Glad it helps ❤️❤️
@Bruh-jw2ze
@Bruh-jw2ze 3 жыл бұрын
Bruh that was funny as hell 🤣 Keep up the good work 👍
@hnasr
@hnasr 3 жыл бұрын
Glad you enjoyed :D
@benmoyal6107
@benmoyal6107 6 ай бұрын
great content!i just love it
@KTechy-
@KTechy- 8 ай бұрын
Great explanations!
@stifferdoroskevich1809
@stifferdoroskevich1809 Жыл бұрын
loved the animation!!
@shashikantpawar7069
@shashikantpawar7069 2 жыл бұрын
Quality 🔥 🔥🔥🔥
@DanFlakes
@DanFlakes 2 жыл бұрын
Props to the animation!
@Khaled-ux6bv
@Khaled-ux6bv Жыл бұрын
Salam alykom brother, great video :)
@molekuax8646
@molekuax8646 2 жыл бұрын
Thanks man
@siddheshlatkar9839
@siddheshlatkar9839 Жыл бұрын
Wish this channel existed when I was in school.
@ayoubatba9507
@ayoubatba9507 Жыл бұрын
dude you're the best 😘😘😘😘
@xuzhihong3036
@xuzhihong3036 4 жыл бұрын
good job hahaha presentation made it so much easlier
@hnasr
@hnasr 4 жыл бұрын
😍😍
@raghuvallikkat3384
@raghuvallikkat3384 3 жыл бұрын
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)
@robbywood440
@robbywood440 Жыл бұрын
Amazing.
@bumfuzzle717
@bumfuzzle717 Жыл бұрын
lmao "Aladdin is a thief" I knew that magic carpet wasn't his! but great video and explanation, need to pass the Security+ exam
@rainchai851
@rainchai851 4 жыл бұрын
every video is a gold mine
@hnasr
@hnasr 4 жыл бұрын
Thanks RAIN! 😊 made me blush
@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.
@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.
@dommikador6524
@dommikador6524 3 жыл бұрын
well done...
@tahirdevlog2047
@tahirdevlog2047 3 жыл бұрын
Awesome
@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
@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?
@kurianbenoy2
@kurianbenoy2 3 жыл бұрын
Love animation
@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 kzbin.info/www/bejne/bGXKloOVgaaNa7c
@umeshb8210
@umeshb8210 3 жыл бұрын
Love the accent sir❤️
@hnasr
@hnasr 3 жыл бұрын
❤️
@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
@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
@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 🇧🇭
@life_ofcoder
@life_ofcoder 3 жыл бұрын
Hi, Beautiful video.. can you share this knowledge with dummy HTTP routes using node.js Thanks
@luisrosalescarrera5406
@luisrosalescarrera5406 3 жыл бұрын
I've just press the like button for the animation, thank you xDDDDDDDDDDDD
@hnasr
@hnasr 3 жыл бұрын
🎊🎊
@mojibrahman2893
@mojibrahman2893 3 жыл бұрын
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.
@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?
@NWigi
@NWigi 3 жыл бұрын
I like that animation LOL. 😂
@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 :)
@PurushotamRai
@PurushotamRai 2 жыл бұрын
this guy is awesome, I can't stop laughing... :D
@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!
@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
@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
@vim55k
@vim55k 3 жыл бұрын
Please add it to TLS playlist
@hnasr
@hnasr 3 жыл бұрын
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😂
@xfrostbite8328
@xfrostbite8328 3 жыл бұрын
Haha there we go 🤣🤣
@amirmohg1319
@amirmohg1319 Жыл бұрын
Easy peasy Japanesey :')
@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.
TCP vs UDP Crash Course
40:30
Hussein Nasser
Рет қаралды 130 М.
【獨生子的日常】让小奶猫也体验一把鬼打墙#小奶喵 #铲屎官的乐趣
00:12
“獨生子的日常”YouTube官方頻道
Рет қаралды 110 МЛН
Когда на улице Маябрь 😈 #марьяна #шортс
00:17
The OSI Model - Explained by Example
25:16
Hussein Nasser
Рет қаралды 172 М.
How does encryption work? - Gary explains
20:30
Android Authority
Рет қаралды 108 М.
Secret Key Exchange (Diffie-Hellman) - Computerphile
8:40
Computerphile
Рет қаралды 936 М.
Tech Talk: What is Public Key Infrastructure (PKI)?
9:22
IBM Technology
Рет қаралды 98 М.
7 Cryptography Concepts EVERY Developer Should Know
11:55
Fireship
Рет қаралды 1,2 МЛН
WebSockets Crash Course - Handshake, Use-cases, Pros & Cons and more
47:33
How Quantum Computers Break The Internet... Starting Now
24:29
Veritasium
Рет қаралды 8 МЛН
Google I/O 2024 - ИИ, Android 15 и новые Google Glass
22:47
Apple Event - May 7
38:32
Apple
Рет қаралды 6 МЛН
APPLE УБИЛА ЕГО - iMac 27 5K
19:34
ЗЕ МАККЕРС
Рет қаралды 99 М.
СЛОМАЛСЯ ПК ЗА 2000$🤬
0:59
Корнеич
Рет қаралды 2,4 МЛН
iPhone green Line Issue #iphone #greenlineissue #greenline #trending
0:10
Rk Electronics Servicing Center
Рет қаралды 4 МЛН