Symmetrical vs asymmetrical Encryption Pros and Cons by Example

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ค. 2024
  • 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
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 118

  • @asfar1984
    @asfar1984 3 ปีที่แล้ว +53

    This channel is my new addiction, every night before going to sleep

  • @joshuaifara2736
    @joshuaifara2736 3 ปีที่แล้ว +22

    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 ปีที่แล้ว +1

      less sleepy :D

  • @vivekbond123
    @vivekbond123 4 ปีที่แล้ว +25

    I am almost binge watching your channel :)

    • @hnasr
      @hnasr  4 ปีที่แล้ว +1

      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 ปีที่แล้ว +5

    Your videos are great, man! I laugh and learn at the same time. Thanks a lot! 🙏🏻

  • @ashishjha9262
    @ashishjha9262 4 ปีที่แล้ว +1

    I am so grateful for your videos. You explain complex topics in such a lucid way!

  • @sreevishal2223
    @sreevishal2223 4 ปีที่แล้ว +24

    These are the only two person in encryption Alice and Bob.. LMAO.. XD XD
    Nice explanation,great humour..

    • @hnasr
      @hnasr  4 ปีที่แล้ว +1

      Thanks Sree 🙏🙏

    • @richardmaduka4747
      @richardmaduka4747 3 ปีที่แล้ว

      LOL don't forget our one and only eavesdropper, Eve

  • @Mr.Nzo2030
    @Mr.Nzo2030 4 ปีที่แล้ว +17

    "It took me 30 fraeking minutes to figure this animation out" LOLOLOLOLOL

  • @zeus134jojojo
    @zeus134jojojo 4 ปีที่แล้ว +1

    I loved those power point animations.
    Great Video!

  • @yashdesai8372
    @yashdesai8372 4 ปีที่แล้ว +1

    Crystal clear from a beginner's point of view!

  • @harpindermatharu8320
    @harpindermatharu8320 4 ปีที่แล้ว +11

    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 ปีที่แล้ว +8

      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 ปีที่แล้ว +2

    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 ปีที่แล้ว +1

    You know, you are perfect and I love the way you explain it

  • @mohamedayoup2761
    @mohamedayoup2761 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

    Awesome as always :)
    Looking forward for video about tls)

    • @hnasr
      @hnasr  5 ปีที่แล้ว

      THANKS ! TLS Video is now up :) th-cam.com/video/AlE5X1NlHgg/w-d-xo.html

  • @MrLLGO
    @MrLLGO 3 ปีที่แล้ว +1

    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 ปีที่แล้ว +5

    Awesome. Btw the animations are great! :D

    • @hnasr
      @hnasr  4 ปีที่แล้ว +2

      Thanks Hans!! 😊

  • @mangihuthasudungan2778
    @mangihuthasudungan2778 5 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

    You are just awesome.. never ever ever ever ever found such a crystal clear explanation... Thanks a lot :)

    • @hnasr
      @hnasr  3 ปีที่แล้ว +1

      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 ปีที่แล้ว +1

      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 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

    Quality 🔥 🔥🔥🔥

  • @ramchandrams6139
    @ramchandrams6139 3 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

      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 ปีที่แล้ว +1

      TLS uses encryption , check out my TLS video th-cam.com/video/64geP_LAZ5U/w-d-xo.html

  • @xuzhihong3036
    @xuzhihong3036 4 ปีที่แล้ว

    good job hahaha presentation made it so much easlier

    • @hnasr
      @hnasr  4 ปีที่แล้ว

      😍😍

  • @LauraMartinez-tj9zd
    @LauraMartinez-tj9zd 3 ปีที่แล้ว +2

    "THIS GUY'S AN IDIOT" lmao I love your explanations and animations. Thank you so so much :D

    • @hnasr
      @hnasr  3 ปีที่แล้ว +1

      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 ปีที่แล้ว +1

      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 ปีที่แล้ว +1

    I like that animation LOL. 😂

  • @luisrosalescarrera5406
    @luisrosalescarrera5406 3 ปีที่แล้ว

    I've just press the like button for the animation, thank you xDDDDDDDDDDDD

    • @hnasr
      @hnasr  3 ปีที่แล้ว +1

      🎊🎊

  • @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 ปีที่แล้ว +1

      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 ปีที่แล้ว +1

      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.