The ULTIMATE One Time Pad Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ธ.ค. 2024

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

  • @Tranquillado
    @Tranquillado 2 ปีที่แล้ว +14

    Over the holidays my uncle talked about the existence of numbers stations, which, naturally, most of us had never heard of, so I’ve been deep-diving into the whole shebang, and it led me here!

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

      Hey! Your Uncle sounds like a cool dude!

    • @MikeClarkeARVR
      @MikeClarkeARVR หลายเดือนก่อน

      Still useful for countries like Cuba or smaller.

  • @ktmusicstudio
    @ktmusicstudio 2 ปีที่แล้ว +9

    i didn't expect this level of production quality!
    good job mate keep it up!

    • @theGaryRuddell
      @theGaryRuddell  2 ปีที่แล้ว +3

      Thank you KT!
      New video dropping today. Hands on to tutorial on the command line for beginners! Less prod and more info!

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

      @@theGaryRuddell and yeah I have a quick question, when using like CT-46 graph to encrypt, I have a problem with the decryption cuz how u identify one-digit letters like A = 1 right,,
      so like that how we gonna identify one-digit letters! (um sorry about my bad English)

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

      Hey! I’d need to see you doing it in action but maybe just go over the instructions with a friend in slow time to see what you’re doing wrong?

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

      @@ktmusicstudio All the one digit letters are 1-5 none of the two digit letters start with 1-5 so if a letter starts with 1-5 you know it's a single sigit. This is assuming I understood it correctly.

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

      @@alfredpetersson 😇 thank u

  • @dariusrunge6800
    @dariusrunge6800 2 ปีที่แล้ว +9

    I really like this video because it brings attention to a topic that is very niche but valuable in my opinion: Handling data in a transparent way. Anyone can understand why the one time pad is secure - not the same as for automated encryption using ordinary computers. I get that they are useful for everyday tasks like banking, but for messages that are personal, OTP has often overlooked potential even today. By the way, I am working on this subject (transparent data processing) in general but so far, have not published that much. There are many ways in which both old techniques (such as chemical photography if a photo is confidential - only if you develop it yourself, of course) or new ones (performing research without disclosing which questions you are asking, PIR) can be used for a degree of secrecy ordinary computers simply cannot achieve verifiably.

    • @theGaryRuddell
      @theGaryRuddell  2 ปีที่แล้ว +3

      Thanks Darius. You’re absolutely right about you can understand how it works and where it becomes exploitable. Unlike the high tech stuff on our phones!

  • @anonymousprime948
    @anonymousprime948 หลายเดือนก่อน

    As someone studying cyber security this is a really cool video, this a simple yet effective video on simply explaining OTP. This deserves more subs and views. I kind of forgot how OTP worked but now I remember.

  • @TK-ni1pl
    @TK-ni1pl ปีที่แล้ว +4

    BEST video, I have seen on the one time pad! Well done!

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

      That means a lot! Thank you for watching and I’m glad you enjoyed it 💜

  • @Zerbey
    @Zerbey 10 หลายเดือนก่อน +2

    I remember learning this in school but forgot how to do it, thank you for such a quick and easy explanation! Those creepy numbers stations you hear on shortwave likely use this exact same method.

    • @theGaryRuddell
      @theGaryRuddell  10 หลายเดือนก่อน +1

      Glad it brought back some memories. Yeah the numbers stations are cool!

  • @MikeClarkeARVR
    @MikeClarkeARVR หลายเดือนก่อน

    Gary, you are an amazing teacher by nature, thanks for all your work. I came back to your video for a NL (natural language) source in order to benchmark the latest AI foundation models that code Python routines nicely, merely by using proper grammar.

  • @orca2162
    @orca2162 2 ปีที่แล้ว +12

    And that explains private keys, excellent content and quality, profoundly informative

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

      Thanks Orca! Glad you enjoyed it :)

    • @JO-sg7wk
      @JO-sg7wk หลายเดือนก่อน

      it doesnt tho, public keys are like sending perfect irreversible locks out into the wild and when you get a message u you use ur single private key to unlock, pads you need to have meet up and agree on a large set of pads (difficult and operational security is highly important when using) Naval ships had massive amount of pads all in water soluble ink so messages couldn't be reversed later after being sunk/defeated

    • @theGaryRuddell
      @theGaryRuddell  หลายเดือนก่อน

      I used those keys on naval ships myself 😉

  • @MikeClarkeARVR
    @MikeClarkeARVR ปีที่แล้ว +9

    You forgot to warn the kids that it ain't easy generating truly random numbers, and one has to be quite careful where you generate them and how you store your pads. I've heard Lava Lamps are good sources of randomness. ;)

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

      I think I mentioned that in here! And yeah, CloudFlare nailed that!

    • @New2chem
      @New2chem 3 หลายเดือนก่อน

      10 sided dice

    • @MikeClarkeARVR
      @MikeClarkeARVR หลายเดือนก่อน

      @@New2chem Alas, any physical object, has micro-imperfections, even the best made dice will have invisible imperfections that will show up in a very large list of outcomes. Good for teaching your 9 year old daughter however the basics! The Pelayo brothers were banned in Casinos around the world for their knowledge that all 'fair' roulette wheels have small imperfections. en.wikipedia.org/wiki/Winning_Streak_(film)

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

    I learned One time pad as well but the one from 0-25 (A-Z), but I wanna thank you for sharing to us something meaningful.

    • @theGaryRuddell
      @theGaryRuddell  ปีที่แล้ว

      Thanks so much for your kind comment!

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

    at 10:15 surely you have made a mistake ? you are ADDING THE plain text to the Key, insted of subtracting the key from the Plain text as you did in the first example ?

    • @theGaryRuddell
      @theGaryRuddell  ปีที่แล้ว

      Hey! It doesn’t respect the 10 when you do the math. Check out Dirk’s PDF in the description for a full on break down of why it works 😊

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

    Explained very well, huge respect!

  • @HH-ys1pq
    @HH-ys1pq หลายเดือนก่อน +1

    Mate, years after upload and this demonstration was invaluable! Subscribed and then unsubscribed just so I could subscribe again

  • @friederichmuller7977
    @friederichmuller7977 4 หลายเดือนก่อน +1

    Thank you again, just inspired first project for my Python practice!

    • @theGaryRuddell
      @theGaryRuddell  4 หลายเดือนก่อน

      Send me a link when it’s done please?

  • @garylanders1470
    @garylanders1470 2 หลายเดือนก่อน

    Excellent job of explaining the process!

  • @musicnerd7296
    @musicnerd7296 2 ปีที่แล้ว +3

    Awesome work! This video is really well done.

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

      Thanks Music Nerd! I really appreciate that feedback 😊

  • @xselaholiviax8593
    @xselaholiviax8593 2 ปีที่แล้ว +3

    Wow very easy to understand and informative thank you and keep it going!

    • @theGaryRuddell
      @theGaryRuddell  2 ปีที่แล้ว +3

      Thanks 🙏🏼 xSelehOliviax!

  • @DanS-x9w
    @DanS-x9w ปีที่แล้ว +1

    Thank you so much for sharing this video .I wish they would teach this to the public more

    • @theGaryRuddell
      @theGaryRuddell  ปีที่แล้ว

      It’s good fun to practice as well. Kids would love it!

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

    If the key was shorter than the message itself, would instances of "the" "no" "yes" ... become obvious again? It seems like they would have to be. So one drawback of this method is that the size of your message is restricted by the size of your key.

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

      Correct! That’s why you have the crib sheets and code sheets

  • @sam2943
    @sam2943 10 หลายเดือนก่อน +1

    Well explained, thanks. Now just need to figure out how to make a code book and one of those letter pads.

    • @theGaryRuddell
      @theGaryRuddell  10 หลายเดือนก่อน +2

      Check out the PDF in the description 👍🏼

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

    What an absolutely fantastic video.... Huzzah!!

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

    How is the initial key created? 😊

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

      Good question. This is one of the flaws in the process. I used Excel’s RANDOM function but that’s not truly random so you have to be careful with it. You can sample white noise to use as a seed to truly randomise the data creation 👍🏼

    • @gregevans8939
      @gregevans8939 5 หลายเดือนก่อน

      In WW2 they recorded the sounds outside of the office window in Oxford Street (I think) to derive the random key data sets. The realised that the sounds of car horns/buses pulling away/kids shouting etc. was not predictable in any way.

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

    thanks! i now run a nubmbers station! (CPNS-52)

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

    Wouldnt random numbers had repatsions in them aswell?

    • @theGaryRuddell
      @theGaryRuddell  ปีที่แล้ว

      Generating truly random numbers is hard. Some would say it’s almost impossible.

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

    FYI, your newsletter link, below, is broken.

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

    Hi Gary,
    My question is, if the person should send both Encrypted msg and Key numbers to the recipient? Because, without the key it's not possible to decrypt. If key is not sent then how the recipient could possible know what the key is, even though the recipient have this cheatsheet. The recipient must know the where to look at in his cheatsheet.
    on the flip side, if the sender is sending key too, then it's out already. I am kind of confused.
    Appreciate your advise.

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

      Yeah the key needs to be sent for sure!
      As I mentioned in the video, this is one of the hardest parts of the operation. A whole book of keys will be printed and given to the recipient. This little book needs to be kept secret…obviously.
      I recommend you read the PDF linked in the description. The more you read about this, the less confused you’ll be.

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

      @@theGaryRuddell Thanks a lot Gary. Really appreciate it.

    • @Zerbey
      @Zerbey 10 หลายเดือนก่อน

      ​@@theGaryRuddell You don't even need pads. Have you and your recipient subscribe to the same daily newspaper, or daily blog, or whatever you pick. Make the first article be your key for that day. Agree on some method to convert the letters to numbers and change it up every week. That way when the NSA break down your door they will never find the key.

  • @furkansahinvarsl6448
    @furkansahinvarsl6448 9 หลายเดือนก่อน +1

    Video is very good THANK YOU

  • @mr.e2962
    @mr.e2962 ปีที่แล้ว

    I looked up the paper by DIRK RIJMENANTS, however, it did not have the small one-time pad key sheets you used in the video. do you have a link to a pdf. that has those?

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

      Hey! Oh I made that in Excel using the random function!

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

    How does the receiver know what numbers to use

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

      They have a copy of the pad that the sender is using. When the sender encrypts, they destroy their pad. And when the receiver decrypts, they destroy their copy. One time use only. It’s a challenge making and distributing these keys. Unlike Signal/Telegram/iMessage which are lightning fast.

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

      @@theGaryRuddell I get that on 2:27. What's the sheet starting with 655 (not a time stamp). Yeah why not just one set of numbers on the pad? Then there's all this math?

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

      @@brizzell2101 the 655 sheet is an encryption and decryption sheet - a one time pad. So you would have it and so would I. And yeah the math just depends on what side of the conversation you’re on. Send VS receive. Hope that helps? The best thing I’ve found to do is to have a go at doing it yourself!

  • @krisdouglas6536
    @krisdouglas6536 11 หลายเดือนก่อน

    How do you do numbers though ? as in entering co-ordinates ? This is the first ive seen without numbers, or am i missing something. Cheers for the vid mate

    • @theGaryRuddell
      @theGaryRuddell  11 หลายเดือนก่อน +1

      Hey, got to 7:32 and pay attention to F-L at number 98. That’s how to switch between figures and letters. Make sense?

    • @Zerbey
      @Zerbey 10 หลายเดือนก่อน

      Agree to some secret method with your recipient. Maybe if I send you an "D" then the next sequence will be numbers until I send "L". Have another pad that has the codes for numbers or reuse the first 10 letters. Your choice, have fun with it!

  • @AViewThroughLensLens
    @AViewThroughLensLens ปีที่แล้ว

    Do you have a suggestion on how to generate truly random numbers for the OTPs?

    • @theGaryRuddell
      @theGaryRuddell  ปีที่แล้ว

      Hey! It’s hard. You can use static, lava lamps, radioactivity and all sorts. But it’s just hard to do on a personal computer etc

    • @AViewThroughLensLens
      @AViewThroughLensLens ปีที่แล้ว

      @@theGaryRuddell Oh, I wouldn't try on a PC. I was just wondering if you have a preferred method of creating random numbers by non-electronic means. Great video, BTW.

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

      @AViewThroughLensLens that’s HARD!!!!! Use dice! But it’s INCREDIBLY manual.

  • @KO4DFJRadio
    @KO4DFJRadio 8 หลายเดือนก่อน +1

    I wouldn’t send it via Morse code over the air as it is illegal per the license conditions!

    • @theGaryRuddell
      @theGaryRuddell  8 หลายเดือนก่อน +2

      If you have the need AND capability to make use of these facilities, you likely:
      A) already have the authority.
      B) don’t care about the authority.

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

    How about this? 1. Create a 10 MB file of random pads (that's 50k pads with 9 random numbers per cell, so it can encrypt up to 441 words / characters per 5x10 pad). 2. Store this file on Alice and Bob's devices. 3. Create an app that reads the file and uses random pads from it to encrypt / decrypt messages.
    Wouldn't this make an uncrackable instant messenger?
    That would take up 1 GB for 100 friends, and when people meet in person, they can refresh the pads.

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

      Yeah that sounds interesting. I guess it would be, the issue would be the device it’s running on wouldn’t be uncrackable so a threat actor could read the characters as they’re typed in using a keylogger etc

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

      @@theGaryRuddell True, when the device is compromised, there's nothing you can do about it. But I'm thinking that past messages would still be uncrackable, because the old pads would be erased.

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

      Yeah sounds similar to the paper method! Should work - worth trying. That’s the best way to figure it out. Have a go!

  • @pogchampminku2535
    @pogchampminku2535 ปีที่แล้ว

    I'm a number station enthusiast. Where can I get my hands on a cryptographically secure random number generator, I want to be able to have some fun with this method of message encryption :)

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

      Hey! If you’re just having fun with it, I’d use a spreadsheet!

    • @pogchampminku2535
      @pogchampminku2535 ปีที่แล้ว

      @@theGaryRuddell I'd still like to know where to get a truly random number generator

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

      Hello, feel free to use my digital version of the one-time pad cipher: github.com/SubXi/otpy-framework2
      It has a CSRNG that is non-deterministic, which is the closest you'll get to truly random numbers (i.e. perfectly secure for real use). The other alternative is using the random.org website which generates numbers from atmospheric noise, but I cannot vouch for it.

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

      @@subxi5744 that’s awesome!

  • @mr.e2962
    @mr.e2962 ปีที่แล้ว +1

    Instead of doing the addition and subtraction one number at a time, why not make them double digits and do the addition and subtraction like that. You would still use the same rules as you would for the single digit, just with two digits.

    • @theGaryRuddell
      @theGaryRuddell  ปีที่แล้ว

      I think using single digits results in a shorter transmission. Think about doing morse code etc. if I’m reading your message right!

    • @mr.e2962
      @mr.e2962 ปีที่แล้ว +1

      @@theGaryRuddell I am referring to the math you were doing to get the Encrypted text.

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

      Ohhhh. I’ll have a look at that! Thanks 😊

  • @homeopathicfossil-fuels4789
    @homeopathicfossil-fuels4789 4 หลายเดือนก่อน

    having punctuation and spaces in your encoded message is a bad idea, it gives a regularity and you can use zipf and that to basically know exactly what length of words spaced by spaces or comma/period+space and bruteforce sentences out of it much easier.

    • @theGaryRuddell
      @theGaryRuddell  4 หลายเดือนก่อน

      I think you’ve missed something. It doesn’t matter what’s in the message. It is TRULY unbreakable without the cipher key.
      The message could read: FFFFFFFFFFFFFFFFFFFFFFF.
      And with the right key, the real message will be revealed.

    • @homeopathicfossil-fuels4789
      @homeopathicfossil-fuels4789 4 หลายเดือนก่อน +1

      @@theGaryRuddell oh yeah you are right! I had a momentary brain fart there, you are right. Thank you so much, I can definitely see why intelligence agencies have used this for so long, and why numbers stations are still live and transmitting to this day. I have immediate (legal, non-hostile, defensive) real life usage for this already.
      It seems sufficiently secure especially if additional levels of encryption are applied, one smart instance I learned of through Manchester Ring was the message decrypting into something legible, but the actual message required the decrypted message to be XOR'd with the cipher key.

  • @maxtorque9591
    @maxtorque9591 2 หลายเดือนก่อน

    Can even store it in a QR code.

    • @theGaryRuddell
      @theGaryRuddell  2 หลายเดือนก่อน

      Store what? The message you’re sending?

  • @Munky332
    @Munky332 ปีที่แล้ว

    Seems like you could improve on this by using hexadecimal, or some other machine code. Obviously at that point it wouldn't be very easily manually decoded and you'd want some machine to do it for you.

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

      Removing machines is a big part of the goal of the OTP. Machines are used to create the codes, but after that, it's all done manually as a matter of priority.

  • @tomspettel3646
    @tomspettel3646 24 วันที่ผ่านมา

    I still dont get it. Left me in the dust

    • @theGaryRuddell
      @theGaryRuddell  24 วันที่ผ่านมา

      You can ONLY break the encryption if you manage to get a hold of the key. That is the ONLY way.
      No computer and brute force it or analyse it. It’s mathematically impossible.

    • @tomspettel3646
      @tomspettel3646 24 วันที่ผ่านมา

      @ i understand what its used. Its how you do it i dont understand

    • @theGaryRuddell
      @theGaryRuddell  23 วันที่ผ่านมา +1

      @tomspettel3646 ah ok. Maybe print off the PDF and try it! Follow along

  • @jkallo
    @jkallo 6 หลายเดือนก่อน

    Bro if this is what k4 is encrypted with then Jim's a massive ....

    • @theGaryRuddell
      @theGaryRuddell  6 หลายเดือนก่อน

      Ha. Jim Sanborn. What a legend.

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

    Your description "Digital is fast and weak; analogue is slow and strong" is wrong. What you are doing on paper is literally a digital process. "Digital" means having to do with digits, which is what you are doing. The word has nothing whatsoever to do with electronics or computers. That's just a common association due to the fact that most digital machines are electronic computers. An analog encryption process would be something else entirely.

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

      I guess the spirit of what’s being demonstrated is modern computer encryption vs old school methods!
      Cheers Benjamin 😊