Пікірлер
@BucolicLife
@BucolicLife 3 сағат бұрын
I read on Wikipedia that it is the only encryption mechanism that is not breakable no matter what quantum computer together with any mathematical decryption algorithms is used. Is that correct? If so, then is this the ultimate encryption system?
@WisdomCafe11
@WisdomCafe11 Ай бұрын
Great easy to follow tutorial. Thank you
@mattd6085
@mattd6085 2 ай бұрын
What binary translation are you using to get your numbers? If your ASCII strings are, for example, 51 for the plain text first letter and 101 for the pad first letter, then the binary conversion will be of a differing length? You can't do XOR with differing string lengths of binary.
@canadiancoding
@canadiancoding 2 ай бұрын
This is actually a good point. I should have mentioned it during the video. If you watch the animation from 3:55 onward you will see every number is left-padded (add 0's to the left) to 8 bits. So every number is 1 byte, and if it can be stored in less bytes then it's just less efficient. This is because ASCII is a fixed-length encoding, whereas something like Unicode makes this more complicated. Hope that makes sense
@prodby.zartbeatz9513
@prodby.zartbeatz9513 4 ай бұрын
4:06
@azuboof
@azuboof 7 ай бұрын
beautiful animations
@raniabagagnan2428
@raniabagagnan2428 8 ай бұрын
Thank you so much i didnt know i had to install vx
@user-uu1re3mk6q
@user-uu1re3mk6q 10 ай бұрын
thank you so much.
@elbayeyoussef4351
@elbayeyoussef4351 11 ай бұрын
Thanks
@purple3036
@purple3036 11 ай бұрын
how the pad is exchanged?
@canadiancoding
@canadiancoding 11 ай бұрын
There isn't any specific way to do this, ideally this is a step you would do "in-private", since if you do it "in-public" this part would need to be secured somehow (no specifics given in the OTP protocl). If eve is able to get ahold of the pad while in transfer then the whole system is no longer secure. One option is to do public-key exchange and then encrypt the pad with a key when you send it. Something like diffie-hellman can do this, which I created a repo to explain here: github.com/descent098/diffie-hellman Thanks for watching!
@skar_slayer
@skar_slayer Жыл бұрын
When I install visual studio code it looks completely different. What am I doing wrong
@catwithablog9916
@catwithablog9916 Жыл бұрын
You don’t understand how long I’ve been looking for this exact video thank you so much
@thearmor9231
@thearmor9231 Жыл бұрын
Nice, it wroks
@slworker1889
@slworker1889 Жыл бұрын
How to Install Python3 and Pip on iPhone kzbin.info/www/bejne/aYXUppJ7mcp-jcU
@josephcalise2976
@josephcalise2976 Жыл бұрын
ty you the goat
@ahmedal-haboobi7918
@ahmedal-haboobi7918 Жыл бұрын
Thank you very much!
@user-rr5bl6hp9l
@user-rr5bl6hp9l Жыл бұрын
can i ask why do people use homebrew to install python rather than from the python website?
@jovannareyescasillas
@jovannareyescasillas Жыл бұрын
Thank you, extremely helpful!
@vladimirbreygin3809
@vladimirbreygin3809 Жыл бұрын
Thank you so much!!! Great content and extremely understandable!!!
@DC-xt1ry
@DC-xt1ry Жыл бұрын
brew + pyenv is the way to go!
@handsomeman-pm9vy
@handsomeman-pm9vy Жыл бұрын
It is also the final operation in every Stream Cipher.
@LorhanSohaky
@LorhanSohaky Жыл бұрын
What is the reserved parameter? I'm noob with the winreg
@canadiancoding
@canadiancoding Жыл бұрын
I did quite a lot of digging, and found something that *might* be true about this. To understand this you need to know a few things Python in general is written in C/C++, in C/C++ header files (.h files) are used to tell you about functions. There are a few common windows ones like windows.h. Looking into the source code for winreg it seems to be using windows.h, but it seems to also be using a function defined in another .h file called RegOpenKeyExW() (learn.microsoft.com/en-us/windows/win32/api/winreg/nf-winreg-regopenkeyexw), I do not know enough about the intricacies of C/C++ or windows to be able to confirm this, but it seems like this is what's being called by python (python actually runs C code and passes your variables to the C code under the hood) In the python source code only 1 place specifies the value can be something non-zero: github.com/python/cpython/blob/main/PC/winreg.c#L1731-L1771 and this is because it's replaced by a zero here github.com/python/cpython/blob/main/PC/winreg.c#L1793 Reading the documentation for RegOpenKeyExW() here: learn.microsoft.com/en-us/windows/win32/api/winreg/nf-winreg-regopenkeyexw#:~:text=%5Bin%5D%20ulOptions,when%20absolutely%20necessary. It states that the value being passed as "reserved" is 0 for a regular link or set to the constant REG_OPTION_OPEN_LINK to make it a symbolic link. (with the warning "Registry symbolic links should only be used when absolutely necessary"). I am not as familiar with the registry, but a symbolic link in general is basically a "file" or "file-like" object that points to another (like a shortcut). It seems like this is the only other possible value, but they don't want you to do this in python (or C) because I would assume like normal symbolic links if the thing you're linking to is deleted, everything linking to it breaks as well! I apologize I couldn't be more precise in my response. As I said this is largely speculative, and my best guess. I would not act on this information until there is something more obvious to confirm this info, but I suspect this is what's happening. For time being, listen to the comments and leave it on 0
@BlackOmegaVirus
@BlackOmegaVirus Жыл бұрын
Thank you very much!
@abugslife2461
@abugslife2461 Жыл бұрын
Thank you so much! Short and sweet :)
@madanifounes
@madanifounes Жыл бұрын
شكرا جزيلا
@samwang7788
@samwang7788 Жыл бұрын
best wishes thank you bro
@pingpong_________41
@pingpong_________41 Жыл бұрын
thanks a lot mate!!
@GautamReaction
@GautamReaction Жыл бұрын
but how to run the code?
@Fried.Hunlee
@Fried.Hunlee Жыл бұрын
Great tutorial thank you! Trying to prepare for my into CS class!
@JOSHUAGLOTV
@JOSHUAGLOTV Жыл бұрын
So since you installed numpy on terminal do you have to install it on vs code ??
@Descent098
@Descent098 Жыл бұрын
Nope, VS Code will use your python install (bottom right corner it will tell you which one it's using). But it only loads the packages you have when you open the editor, so if you install something while VS code is open you need to close it and reopen for the autocompletion to recognize the package.
@furstfr
@furstfr Жыл бұрын
Thank you very much bro
@Amy-mo9ki
@Amy-mo9ki Жыл бұрын
very helpful, thank you. ✌
@kyokokirigiri166
@kyokokirigiri166 Жыл бұрын
you are amazing in teaching simple and straight to the point and making it funny at the same time. thank you for your time!
@c.j.1089
@c.j.1089 Жыл бұрын
this overcomplicates the one time pad immensely.
@toby9999
@toby9999 Жыл бұрын
How so?
@war-c0mmander
@war-c0mmander 2 жыл бұрын
👍
@MrBitviper
@MrBitviper 2 жыл бұрын
thanks for the clear explanation. much appreciated
@greatonreviews
@greatonreviews 2 жыл бұрын
Amazing , super clear and precise! Thank you! :D
@HenryCasillas
@HenryCasillas 2 жыл бұрын
☮️
@nothkphh
@nothkphh 2 жыл бұрын
Thanks a lot!!! I trying to learn how to read WinRegistry, only your one video helps me. < 3
@markanthadon
@markanthadon 2 жыл бұрын
Any updates on mentioned issues with writing to HKLM using winreg?
@canadiancoding
@canadiancoding 2 жыл бұрын
Unfortunately not, I have not modified any of this code for a long time after searching for more information for a while
@josales3570
@josales3570 2 жыл бұрын
Ty for your video. Helped me a lot.
@ninmarwarda5154
@ninmarwarda5154 2 жыл бұрын
But if Eve has the pad and ciphertext then she can easily decrypt it, right? And it is usually the case that the pad and ciphertext are public, isn't it?
@canadiancoding
@canadiancoding 2 жыл бұрын
The pad in this example is typically the thing that is kept secret or is somehow obfuscated. This means the content itself can be distributed publicly without worry, and the only thing you need to keep safe is the pad. Likewise it means you can use the same pad for multiple pieces of content (VERY NOT IDEAL security wise) which means you only have to keep 1 thing private and everything else after that can just be distributed publically. Alternatively it can be distributed with some sort of encryption that then has a handshake to allow the decryption key to be distributed. For example you might distribute an encrypted pad over a public channel, but it is locked behind a 16 digit password that was transferred using something like the Diffie-Hellman key exchange (github.com/Descent098/Diffie-Hellman), or even just setup a secure connection with something like SSL (www.ssl.com/faqs/faq-what-is-ssl/) using a key exchange to distribute the pad privately.
@dilshadurrahman4248
@dilshadurrahman4248 2 жыл бұрын
Nice explanation of OTP. Thanks.
@DeleriousOdyssey
@DeleriousOdyssey 2 жыл бұрын
Why is this so hard for me to understand? Lol
@LLNB2196
@LLNB2196 2 жыл бұрын
Damn, I love your humor hahahah
@wheelieblind
@wheelieblind 2 жыл бұрын
Next time use unicode lol
@canadiancoding
@canadiancoding 2 жыл бұрын
For a video like this Unicode is unwieldy, this is meant to be an intro not a how-to necessarily. The primary purpose of this video was for a course I took where the prof wanted a teaching utility to show people about the protocol. ASCII is just simple because it's a small enough collection to do by hand while being expressive enough to be useful. In the real world the character encodings themselves get incredibly annoying to deal with (especially with bloody emoji's), and Unicode would be better especially for languages other than English. Thanks for watching!
@ezzeldin101
@ezzeldin101 2 жыл бұрын
This is an awesome tutorial, Please keep it on!!
@JuanGerardoHernandez
@JuanGerardoHernandez 2 жыл бұрын
How Bob get the pad form Alice?
@canadiancoding
@canadiancoding 2 жыл бұрын
There are essentially an infinite number of ways to do this. These could include any form of network interaction like sending messages back and forth via WIFI, all the way to printing the details out and doing it by hand would work. That section of the protocol allows for a ton of leniency to implement however works best for you.
@breathandrelax2
@breathandrelax2 3 жыл бұрын
whoa! after searching for hours finally you made it crystal clear. thank you buddy. you the man
@civedm
@civedm 3 жыл бұрын
I'm pretty sure the original idea of the one-time-pad didn't involve ACSII and binary. The system was such that it could be easily done on a piece of paper by hand.
@canadiancoding
@canadiancoding 3 жыл бұрын
It may not have used ASCII specifically (numbers may have been different), but it would've worked exactly the same. The ASCII version, and any other character coded system can be done on paper (I had to do that for this video actually).
@leif_____8579
@leif_____8579 2 жыл бұрын
OTP was mainly used by Secret services. Agents were given a sheet of numbers (The equivalent to the key here) with which they could decrypt secret messages.
@yojumba
@yojumba 3 жыл бұрын
Thx for the great explanation!