RSA Algorithm - How does it work? - I'll PROVE it with an Example! -- Cryptography - Practical TLS

Sdílet
Vložit
  • čas přidán 19. 05. 2024
  • In this we discuss RSA and the RSA algorithm. We walk our way through a math example of generating RSA keys, and then proving the ability to encrypt a message with one key and decrypt with the other (in both directions).
    We show you how RSA uses prime numbers to create keys and encrypt/decrypt messages. And discuss how the Security of RSA lies in the difficulty of Semi Prime factorization.
    Asymmetric encryption is often described as "you can encrypt with the public, and decrypt with the private... And while that is true for RSA, it isn't true for the other Asymmetric Encryption Protocols (DH, DSA). We'll have dedicated videos covering those next.
    Watching this will give you a more complete understanding of RSA and Asymmetric Encryption.
    This lesson is a free sample lesson from the the greatest TLS and SSL training course ever created. No instructor rambling on about pointless stories. No slides with massive walls of text. No time wasting. Only simple, effective, and precise explanations. Complimented with practical illustrations and visuals.
    🔐 More details about the course:
    classes.pracnet.net/courses/p...
    🏢 Do you configure or troubleshoot TLS/SSL for work? If so, I'm willing to bet your employer would happily pay for this SSL training. Reach out if you'd like to coordinate an introduction for a bulk license purchase with your company. I'm happy to provide a generous referral bonus =)
    💬 Join Practical Networking Discord
    / discord
    🖧 Want to learn how how data moves through a network?
    • Networking Fundamentals
    00:00 - Intro to RSA Algorithm
    01:51 - RSA Math - Factors, Primes, Semi-Primes, Modulo
    04:59 - RSA Math - Generating RSA Keys
    09:08 - RSA Math - Encrypting with Public Key, Decrypting with Public Key
    10:53 - RSA Math - Encrypting with Private Key, Decrypting with Public Key
    12:40 - How secure is RSA algorithm?
    15:15 - Practical TLS - the Ultimate TLS/SSL Training Course
    Since you've made it to the bottom of the Description, here's a $100 off coupon code you can use on the full course =)
    YT100
  • Věda a technologie

Komentáře • 256

  • @PracticalNetworking
    @PracticalNetworking  Před 2 lety +7

    👉 *More free lessons:* czcams.com/play/PLIFyRwBY_4bTwRX__Zn4-letrtpSj1mzY.html
    ✨ *Full course:* pracnet.net/tls
    💲 *Coupon Code* for 50% off: youtube50
    ➕✖➖➗ More *Prime* / *Generator* combinations you can try: 227/17 347/19 991/22

  • @pradeeshbm5558
    @pradeeshbm5558 Před 3 měsíci +9

    First explanation of RSA in the world without Alice and Bob

  • @mertcancam
    @mertcancam Před 2 lety +88

    You are an incredibly gifted instructor. Can't thank you enough!

  • @niranjanphadke
    @niranjanphadke Před 2 lety +30

    Completed my graduation physics/mathematics in 1987. Read so many books, understood concepts today with this explanation. Thanks a lot..

    • @PracticalNetworking
      @PracticalNetworking  Před 2 lety +3

      You're very welcome, Niranjan =)

    • @humayoonkhan2797
      @humayoonkhan2797 Před 2 měsíci +1

      I can relate to your reply. I graduated with the same subjects in 1986. This video was very helpful in clearing the concept.

    • @dongmingyao6428
      @dongmingyao6428 Před 23 dny

      same feeling

  • @alexanderkrizel6187
    @alexanderkrizel6187 Před 9 měsíci +13

    23/83. It's actually pretty easy with Excel. SQRT(1909) = 43.6921, so do x=1 to 44 with 1909/x. Since it's semi-prime, only one value (23) will have a whole number answer. Just to check, 23*83=1909 and both are prime. But that's 1909. Doing the same for a 100+ digit number is beyond what Excel can handle. Great video. Thanks!

  • @TheMrNatoShow
    @TheMrNatoShow Před 2 lety +19

    You make what I once thought was extremely complicated very easy to understand! You are a visual learner’s dream come true concerning public and private keys 🔑

    • @PracticalNetworking
      @PracticalNetworking  Před 2 lety +2

      That's so nice to hear =). The goal of every teacher is exactly that, making the complex seem simple. Glad I could help!

  • @WhiteZorin
    @WhiteZorin Před 2 lety +6

    Awesome! I was not sooo much interested in such a deep dive, but when you started explaining I just sat and enjoyed the ride :) Thanks for your work again.

  • @GregDickinson75
    @GregDickinson75 Před 2 lety +5

    This is awesome. We all use RSA encryption daily but I never really knew *how* all those keys worked together. Thanks for explaining it clearly and concisely.

    • @PracticalNetworking
      @PracticalNetworking  Před 2 lety

      Glad you liked it, Greg! Yes, so much happens "under the hood" that we don't appreciate. You'll like the DH video I have planned to release next week!

  • @MusaYmc
    @MusaYmc Před rokem

    Tnx for the clear explanation! Took me 15 minutes to implement a simple RSA encryption for my embedded project thanks to you.

  • @adedejiemmanuel1
    @adedejiemmanuel1 Před 2 lety +1

    You are convincing. When you said of your difficulty and the concomitant aha moment, that got me glued to the video. Of course, the content is always insightful. You are always amazing. Thank you forever.

    • @PracticalNetworking
      @PracticalNetworking  Před 2 lety

      Glad you enjoyed this one, Azza =). DH Next, I'm sure you'll enjoy that one too!

  • @C0ttageChees
    @C0ttageChees Před 9 měsíci +1

    Thank you! I've wondered about this for a long time. Highly appreciate your simplification and well-executed presentation =]

  • @fsl001
    @fsl001 Před 2 lety +4

    We need more inspiring people like you. Fantastic overview

    • @PracticalNetworking
      @PracticalNetworking  Před 2 lety +1

      Thank you, Mr. Cool! =) I have a feeling you'll like the DH video I'm releasing monday =)

  • @ChitChat
    @ChitChat Před rokem

    Your skills in instruction are unrivaled anywhere else and helps make us all feel a little less dumb for not understanding other instructor explanations.

  • @wayneinteressierts9973
    @wayneinteressierts9973 Před 2 lety +1

    Simply the best IT channel at the whole web! I‘m so much grateful for your work!!!

  • @preciousmposa1363
    @preciousmposa1363 Před rokem

    This is one of the most effective lessons I’ve encountered on RSA🎉

  • @sillycut1169
    @sillycut1169 Před rokem +1

    I have just started learning more about IT and I think I might have found the best channel. Please keep posting such amazing videos.

  • @dustcore
    @dustcore Před rokem +8

    Never been a fan of maths but this was one of the most fun and interesting videos to watch. Thanks for sharing !

  • @vipingeorgevu3yvg904
    @vipingeorgevu3yvg904 Před 2 lety +2

    Thanks for this awesome explanations. You have the gift of condensing complex topics in an easily understandable way. Keep up the good work

  • @Byassch
    @Byassch Před 2 měsíci

    you just blew my mind. wow. thank you for making it simple yet complex.

  • @yerzhansalkynbayev6174
    @yerzhansalkynbayev6174 Před 7 měsíci

    Really awesome video, I used to think that the math behind RSA was super complicated, you made it look so easy! Thank you)

  • @user-be6wb1vd7w
    @user-be6wb1vd7w Před 11 měsíci +1

    Ive watched a lot of videos to understand rsa but this was the only one that made me understand it! Thanks for the video!

  • @tr7343
    @tr7343 Před rokem

    The best explanation about RSA ever heard. Thank you so much man.😇

  • @imranhussain8700
    @imranhussain8700 Před 5 měsíci

    How is this possible, How can you explain such a complex topic so effortlessly, Simply Brilliant, Blown away :). Thank you very much, appreciate all your efforts.
    Why this channel is not having enough subscribers :(, atleast you deserve 5 million

  • @danialranjbar9805
    @danialranjbar9805 Před 9 měsíci

    I cant thank you enough for publishing these couses on youtube

  • @j0rss
    @j0rss Před 6 měsíci

    this series is amazing, much needed as a fresh sysadmin. thank you!

  • @cxl26
    @cxl26 Před rokem

    I can only reiterate what many people have already said. This is amazing contents! Thank you very much sir!

  • @offensiveredteam
    @offensiveredteam Před 9 měsíci

    Ed your explanation is truly a blessing ❤❤❤

  • @wijpke
    @wijpke Před 9 měsíci +1

    First time I have seen public key encryption with an example

  • @joanbahati6260
    @joanbahati6260 Před rokem +2

    You are a gifted instructor. Thank you so much

  • @alicaljungberg3742
    @alicaljungberg3742 Před měsícem +1

    Perfect explanation. Thank you.

  • @renujain8911
    @renujain8911 Před rokem

    Another interesting video with interesting maths behind RSA algo... Simple explanation made me to thank Ed for putting this together for everyone... 🙂

  • @peterchmelar8886
    @peterchmelar8886 Před 2 lety +3

    Absolutely amazing walktrough! :) Thanks for the math

  • @user-we7zm4pn6c
    @user-we7zm4pn6c Před 2 měsíci +1

    Amazing explanation ...really useful and clear, thank you!!!

  • @mikehavekin3394
    @mikehavekin3394 Před rokem

    amazing work, to take this and make it understandable on the first run through is a trye gift, thanks you.

  • @sreeramthokala
    @sreeramthokala Před 9 měsíci +1

    Great and simple explanation and examples with simple numbers helps to reinforce concept

  • @vetri_vel
    @vetri_vel Před 9 měsíci

    Thank you :) Completely understood!

  • @Vivian-ve1qt
    @Vivian-ve1qt Před 8 měsíci

    A very clear explanation. Thank you so much for that. :)

  • @willk7184
    @willk7184 Před 3 měsíci

    What an awesome explanation. Have always wanted to understand this and your video is so concise and clear. Thanks friend.

  • @bouramadiallo4892
    @bouramadiallo4892 Před 2 lety +1

    Great job the more we learn the more we will understand 👍

  • @BabliShil
    @BabliShil Před rokem +1

    Thank You So much for this Amazing Explanation....May God Bless You......

  • @PracticalNetworking
    @PracticalNetworking  Před 2 lety +4

    🥳🥳 *Promotion Ended - Congrats @The.Wizard* 🥳🥳
    For the rest of you, you can use this discount code for $100 off the course: YT100
    classes.pracnet.net/courses/practical-tls
    Subscribe + Notification bell to increase your odds of winning when the next video (and giveaway) releases!
    📢📢 Practical TLS - Course Giveaway 📢📢
    I'll be picking a random person from all the comments in the next 7 days on this video to give a scholarship for free access to the full Practical TLS course.
    All you have to do is make a post to enter. Check back in a week to see if you won. =)

    • @johnakhagbemhe552
      @johnakhagbemhe552 Před 2 lety +1

      Great job. I'm interested. Thank you.

    • @PracticalNetworking
      @PracticalNetworking  Před 2 lety

      @@johnakhagbemhe552 Good luck with the drawing =)

    • @johnnyq4260
      @johnnyq4260 Před 2 lety +1

      Dang! Had I seen this I would have heaped (the deserved) praises on you instead of posting an emoji 🤣

    • @IIDarknightII
      @IIDarknightII Před 2 lety +1

      Nice work with the video. Do you have videos like that on AES encryption?

    • @pravinkalake995
      @pravinkalake995 Před 2 lety +1

      Thanks mate! This is a top quality informative content✌

  • @rajdippal51
    @rajdippal51 Před rokem

    Best explanation on RSA 🤩. Thank you so much 😇

  • @TheRapidram
    @TheRapidram Před 10 měsíci

    Excellent video. Thanks very much for explaining it.

  • @razeef123
    @razeef123 Před 4 měsíci

    Thank you so much. Now only I understand the RSA!!!

  • @mikemccartneyable
    @mikemccartneyable Před 2 lety +1

    That was a pretty amazing tutorial, thank you for sharing

  • @rschmidtzalles
    @rschmidtzalles Před rokem +1

    One of the best RSA videos that I found

  • @Segmentation_fault
    @Segmentation_fault Před 3 měsíci +1

    Thanks a lot. I'm currently studying my cryptography course and this video gives me a better understanding of RSA.

  • @warcryplayer5751
    @warcryplayer5751 Před rokem +1

    A long time ago (Maybe 4 years), my teacher made us design a crc decoder to detect and fix bugs. It was a very simple one that could fix just one bit, and as far as I remember, it uses kind of the same method you're using here, I cannot remember the math but it had to do with prime polynomials and fields of galois and somehow, you made me remember my student days... Anyway thanks very much this was really helpfull you're such a good instructor I really appreciate. Thanks very much 😋😋

    • @PracticalNetworking
      @PracticalNetworking  Před rokem +1

      Hopefully it was a positive nostalgic moment =). Thank you for the kind words, glad you enjoyed the video. Cheers.

  • @meirgold
    @meirgold Před 11 měsíci

    Excellent explanation. Thanks!

  • @satishsj
    @satishsj Před 3 měsíci +1

    Excellent video ! There may not be an easier way to explain the RSA algorithm !

  • @markthrasher4548
    @markthrasher4548 Před 11 měsíci +1

    Very clear explanation of RSA that is easy to follow!

  • @awaisraza2285
    @awaisraza2285 Před rokem

    Damn, This is literally very easy. Couldn't able to understand this in my semaster and now after 10 days i have final exams for cryptography. This helped me alot

  • @jairunet
    @jairunet Před rokem +1

    Excellent! I have a bit more understanding about RSA encryption, I use it on a daily basis in Linux, Network Devices, Bitcoin the protocol, and the Lightning Network, enlightening information Ed, thank you very much for all you do. All the very best!

  • @hayanamer1652
    @hayanamer1652 Před 2 lety +1

    Amazing explanation. Many thanks.

  • @adnaneafifi2234
    @adnaneafifi2234 Před rokem +1

    Good to see the math behind it ! =)

  • @ethanhalprin
    @ethanhalprin Před 2 lety +1

    Best explanation of RSA ever.

  • @sapereaude8258
    @sapereaude8258 Před 5 měsíci

    wow simple and clear, thanks

  • @emilsimonyan2818
    @emilsimonyan2818 Před 4 měsíci

    Good explanation, thank you

  • @pasindusrl8078
    @pasindusrl8078 Před 2 lety +1

    Very good explanation. Thanks man.

  • @nadimakhtar97
    @nadimakhtar97 Před 2 lety +2

    Great Video again 😄 Love the way you explain 🤟

  • @robertroy1878
    @robertroy1878 Před rokem

    Wow. If I only had you as a professor.

  • @kolex023
    @kolex023 Před rokem +1

    Thank you very much! I always wanted to understand it!

  • @aliayen
    @aliayen Před 7 měsíci

    Wow, well explained.

  • @marcusdzn
    @marcusdzn Před 24 dny

    I loved the lesson thanks!

  • @arunsankpal4219
    @arunsankpal4219 Před 2 lety +1

    Thank you sir for this video much need right now for me , preparing for interview

  • @vmkkannan
    @vmkkannan Před rokem

    clean explanation

  • @san_7123
    @san_7123 Před 9 měsíci

    Impressive!😃

  • @dongmingyao6428
    @dongmingyao6428 Před 23 dny

    thank you for making this wonderful vedio.

  • @user-jt8rp8gn3w
    @user-jt8rp8gn3w Před 2 měsíci

    Best Explanation.

  • @IIDarknightII
    @IIDarknightII Před 2 lety +1

    Wow, nice tutorial!! very clear

  • @IliyaDamyanov
    @IliyaDamyanov Před 7 měsíci

    Excellent video.

  • @maxmaster9908
    @maxmaster9908 Před 2 lety +1

    Great explanation!! 😊👍

  • @robertoospina10
    @robertoospina10 Před 10 měsíci

    Awesome! Thank you!!!

  • @AbhishekSingh-or2qi
    @AbhishekSingh-or2qi Před 11 měsíci

    That was awesome👏👏

  • @VideosfromElle
    @VideosfromElle Před 2 lety +1

    At 3:24 I about gasped lol 😆 was not familiar with Semi-Prime...RSA literally jumped off the screen after that! THX

    • @PracticalNetworking
      @PracticalNetworking  Před 2 lety +2

      Yes, that and Modulo are the common ones people haven't heard of. But they aren't too complicated terms =). Glad you enjoyed it!

  • @silentkille4
    @silentkille4 Před 6 měsíci

    Best explanation

  • @octavianlutencu2636
    @octavianlutencu2636 Před rokem

    GREAT video, THANKS !!!!

  • @Don-Carillo
    @Don-Carillo Před 2 lety +1

    found that very interesting. although math's not my strong point and i will have to watch the math bit again (maybe a few hundred times knowing me ) it helped me understand the process a lot more. Looking forward to the DH one.

    • @PracticalNetworking
      @PracticalNetworking  Před 2 lety +1

      That's the whole point =) It was easier for me to understand RSA when I saw the math. I'm certainly not a mathematician, but I was able to follow with the simple example. Glad you liked it Don. DH Next week!

  • @WavySoldierGuyPS
    @WavySoldierGuyPS Před 9 měsíci

    Amazing video but I want to ask two questions: How come RSA keys are MUCH bigger with letters like how does it end up being like that? Does that mean using what you said we could code a simple version of RSA like a library?

  • @investing4664
    @investing4664 Před 2 lety +1

    Keep up this great work :)

  • @rafay1708
    @rafay1708 Před 2 lety +1

    you are genius, thanks so much for your useful Videos 👍

  • @manjunathkp7315
    @manjunathkp7315 Před 2 lety +1

    Best tutorial..!!!

  • @walidshoura
    @walidshoura Před rokem

    The best teacher

  • @amanitavirosa1861
    @amanitavirosa1861 Před 3 měsíci

    Instant subscription!

  • @maltaparkhelp
    @maltaparkhelp Před 8 měsíci +1

    The encryption/decryption calculation makes use of the semi-prime. Does this form part of both the private and public keys in practice?

    • @PracticalNetworking
      @PracticalNetworking  Před 8 měsíci

      Yes, an RSA "public key" contains two values, the exponent and the semi prime.
      (the exponent is the value we called the public key in the video)

    • @OldtimerOfSweden
      @OldtimerOfSweden Před 6 měsíci

      And the exponent, E, is almost always 65537. So the unique part, which makes D unique, is actually the semi-prime.

  • @alexanderboji7154
    @alexanderboji7154 Před 6 měsíci +1

    Thank you

  • @ceemi7402
    @ceemi7402 Před 9 měsíci +1

    Well explained....2 and 3 are prime numbers if you multiply you get 6 so is 6 a factor and a semi prime number at the same time?

    • @PracticalNetworking
      @PracticalNetworking  Před 9 měsíci

      Yes. A number can be a factor of another number, and a semi-prime / prime at the same time.
      5 and 3 are both prime. 5*3 is 15, 15 is Semi-Prime. 15 is also a factor of 30, and 45, and 60, and so on.

  • @phil5293
    @phil5293 Před rokem +1

    You are the best instructor, teacher ever. What is your name dude?

    • @PracticalNetworking
      @PracticalNetworking  Před rokem

      Hi Phil. Thanks for the kind words =). My name is Ed =). This is me: practicalnetworking.net

  • @PooyaHemmati
    @PooyaHemmati Před 11 měsíci

    Thank you, Very Good

  • @carlosjavierdiaz1173
    @carlosjavierdiaz1173 Před 2 lety +1

    Thank you very much!

  • @skeptisch2751
    @skeptisch2751 Před 2 lety +1

    Thank you so much

  •  Před 2 lety +1

    Quedo claro para mi... gracias

  • @Mike-op5us
    @Mike-op5us Před rokem +2

    primes are 23 and 83...took me about 60 seconds! Python is awesome.

  • @migueldiogo1477
    @migueldiogo1477 Před rokem +1

    Great Video👌

  • @hoople212
    @hoople212 Před rokem +1

    that was amazing

  • @noctiluxleica2512
    @noctiluxleica2512 Před 2 lety +1

    thank you!

  • @Nayab492
    @Nayab492 Před 5 dny +1

    I was going through the video and I came across one question.
    Is it necessary that the public and private key values must be greater than the two prime numbers(P,Q) chosen in the beginning?

  • @user-tu9nm6br9f
    @user-tu9nm6br9f Před rokem

    thank you

  • @nakulkumar9363
    @nakulkumar9363 Před 11 měsíci

    Can't stop clapping, this was so impressive I might just try to pursue whatever this is as a career

  • @honeykamboj7508
    @honeykamboj7508 Před měsícem

    BTW great explanation, but don't receiver needs to know the value of N apart from public key in order to decrypt the cipher!! If yes how do we achieve that??