Canadian Coding
Canadian Coding
  • 29
  • 129 912
How does binary work
Binary is the language computers speak, but how does it work. This video will walk through binary conversions, and how to think about binary to make sense out of it.
Links Referenced
----------------------------
Binary Post: kieranwood.ca/compsci/programming/Binary-and-Hexadecimal
Compsci KB: kieranwood.ca/compsci/
Table of Contents
----------------------------
0:00 What is binary?
0:10 How our decimal system works
0:19 Numbers as composites
1:05 Counting and overflows
1:50 Binary as a composite number
2:50 Converting decimal number to binary
2:55 Continuous subtraction algorithm
5:14 Converting from binary back to decimal
5:50 Continuous add algorithm
6:52 Shilling the compsci kb
7:08 What's this used for
7:25 Sending electrical signals
9:00 Conclusion
===== Social Media/Contact =====
canadiancoding.ca/
canadiancoding
github.com/canadian-coding
kieran@canadiancoding.ca
มุมมอง: 57

วีดีโอ

How to install python 3 on macos
มุมมอง 73K2 ปีที่แล้ว
Table of Contents Links Referenced Python Download: www.python.org/downloads/ VS Code Download: code.visualstudio.com/download Social Media/Contact canadiancoding.ca/ canadiancoding github.com/canadian-coding kieran@canadiancoding.ca
Python 3 install & setup video (windows 10/11 & VS Code)
มุมมอง 2562 ปีที่แล้ว
Table of Contents 0:00 Installing Python 0:30 IMPORTANT: add python to path 0:50 Wait for python to install 1:10 Check it installed correctly 2:18 Installing VS Code 3:00 Configuring VS Code 4:34 Outro Links Referenced Python Download: www.python.org/downloads/ VS Code Download: code.visualstudio.com/download Social Media/Contact canadiancoding.ca/ canadiancoding github.com/canad...
ezcv remote editing tutorial
มุมมอง 1853 ปีที่แล้ว
Table of Contents 0:00 Intro 0:23 What you'll need 0:45 GitHub Account Necessary File Types 2:18 YAML 2:56 Markdown Setup 3:51 Creating your site from template 5:50 Explaining terminology 6:20 First site build 7:20 A first look at your site 7:40 What to do if this didn't work 8:38 Explanation of the files/folders Creating content 10:05 Writing the config.yml file 11:35 Picking a theme 13:40 Wha...
Updating the windows registry with python (Modify path variable in windows with python)
มุมมอง 10K4 ปีที่แล้ว
I will show you how to update the registry using python. In this example I will be looking at modifying the windows system PATH variable using python. (Click Show More) Links Referenced Practical Windows Registry Explanation: th-cam.com/video/tBwAHqqPoQY/w-d-xo.html ConnectRegistry(): docs.python.org/3/library/winreg.html#winreg.ConnectRegistry HKEY_* Constants: docs.python.org/3/library/winreg...
Practical Windows Registry Explanation
มุมมอง 1.6K4 ปีที่แล้ว
Social Media/Contact canadiancoding.ca/ canadiancoding github.com/canadian-coding kieran@canadiancoding.ca Table of Contents 0:00 Intro and example 0:52 Registry Editor 1:12 File directory analogy 1:30 Terminology 1:44 Folder Demo 2:00 Metadata 2:53 Disclaimer 3:10 Shilling Links Referenced Modify Registry with Python: th-cam.com/video/MdshNIw_ZRM/w-d-xo.html Details The registry...
6 Months of Daily Software Development
มุมมอง 634 ปีที่แล้ว
Table of Contents 0:21 - What a github contribution is Before and after comparisons 2:06 - Time frame 2:40 - Development Frequency 3:20 - Total Contributions (~700-800 in ~7 months) 3:58 - My coding background 5:08 - The other Videos in this series Review of old and new code 5:55 - Project 1 Comparison (Python Web Utilities vs SWS) 10:46 - Project 2 Comparison (The Pantheon vs Simple OTP) 13:35...
Animated Explanation of the one-time pad
มุมมอง 39K4 ปีที่แล้ว
Video walkthrough of code implementation: th-cam.com/video/50XM-h3h6Fw/w-d-xo.html Explanation of converting from decimal to binary: www.khanacademy.org/math/algebra-home/alg-intro-to-algebra/algebra-alternate-number-bases/v/decimal-to-binary Explanation of XOR: th-cam.com/video/YtghBxoBxpA/w-d-xo.html More info about the one-time pad's use throughout history: learn.adafruit.com/raspberry-pi-th...
One Time Pad Explanation + Code Walkthrough
มุมมอง 5K4 ปีที่แล้ว
Python Source Code: github.com/Descent098/simple-otp/blob/master/python/otp.py Description of One Time pad: github.com/Descent098/simple-otp#theory Animated Explanation of One Time pad: th-cam.com/video/QVV_bUxxiZ8/w-d-xo.html Explanation of converting from decimal to binary: www.khanacademy.org/math/algebra-home/alg-intro-to-algebra/algebra-alternate-number-bases/v/decimal-to-binary Explanatio...
AHD V0.4.0 livestream
มุมมอง 124 ปีที่แล้ว
This Release: github.com/Descent098/ahd/releases/tag/v0.4.0 ahd documentation: ahd.readthedocs.io/en/latest/ pypi: pypi.org/project/ahd/ github: github.com/Descent098/ahd Social Media/Contact canadiancoding.ca/ canadiancoding github.com/canadian-coding kieran@canadiancoding.ca Intro Music JawnDane - Friends th-cam.com/video/4U1FtBsMfs0/w-d-xo.html • Jawn Dane soundcloud.com/jawnd...
[Presentation] Basic Web Technologies
มุมมอง 1124 ปีที่แล้ว
This presentation is an accompaniment to another presentation I am giving on the process of creating a website. It will give you the very basics of HTML, CSS and JavaScript interact with each other and what they do on a webpage. Link to Presentation Slides: kieranwood.ca/basic-web-technologies Social Media/Contact canadiancoding.ca/ canadiancoding github.com/canadian-coding kiera...
AHD V0.2.0 Release Video
มุมมอง 54 ปีที่แล้ว
ahd documentation: ahd.readthedocs.io/en/latest/ pypi: pypi.org/project/ahd/ github: github.com/Descent098/ahd Social Media/Contact canadiancoding.ca/ canadiancoding github.com/canadian-coding kieran@canadiancoding.ca Intro Music JawnDane - Friends th-cam.com/video/4U1FtBsMfs0/w-d-xo.html • Jawn Dane soundcloud.com/jawndane jawndane jawndane
kuws development; refactoring and revamping an old python project
มุมมอง 384 ปีที่แล้ว
Just to make sure you're aware the project has switched names (I don't like having my name in a project). kuws documentation: kuws.readthedocs.io/en/latest/ pypi: pypi.org/project/kuws/ github: github.com/Descent098/kuws Social Media/Contact canadiancoding.ca/ canadiancoding github.com/canadian-coding kieran@canadiancoding.ca Intro Music JawnDane - Friends th-cam.com/video/4U1FtB...
AHD V0.1.0 livestream; planning and boilerplate
มุมมอง 254 ปีที่แล้ว
ahd documentation: ahd.readthedocs.io/en/latest/ pypi: pypi.org/project/ahd/ github: github.com/Descent098/ahd Social Media/Contact canadiancoding.ca/ canadiancoding github.com/canadian-coding kieran@canadiancoding.ca Intro Music JawnDane - Friends th-cam.com/video/4U1FtBsMfs0/w-d-xo.html • Jawn Dane soundcloud.com/jawndane jawndane jawndane
Python Packaging Template usage documentation
มุมมอง 684 ปีที่แล้ว
Link to github: github.com/canadian-coding/python-package-template Social Media/Contact canadiancoding.ca/ canadiancoding github.com/canadian-coding kieran@canadiancoding.ca Intro Music JawnDane - Friends th-cam.com/video/4U1FtBsMfs0/w-d-xo.html • Jawn Dane soundcloud.com/jawndane jawndane jawndane
Pystall V 0.2.0 Release Video
มุมมอง 64 ปีที่แล้ว
Pystall V 0.2.0 Release Video
Pystall Development V0.1.0 Livestream; more features and distribution
มุมมอง 194 ปีที่แล้ว
Pystall Development V0.1.0 Livestream; more features and distribution
Pystall Development V0.1.0 Livestream; Refactoring
มุมมอง 274 ปีที่แล้ว
Pystall Development V0.1.0 Livestream; Refactoring
Pystall Development V0.1.0 Livestream; Planning and boilerplate
มุมมอง 174 ปีที่แล้ว
Pystall Development V0.1.0 Livestream; Planning and boilerplate
PYTH 101 Module 7 Extras
มุมมอง 154 ปีที่แล้ว
PYTH 101 Module 7 Extras
PYTH 101 Module 6 Python Modules
มุมมอง 1004 ปีที่แล้ว
PYTH 101 Module 6 Python Modules
PYTH 101 Module 5 Classes
มุมมอง 225 ปีที่แล้ว
PYTH 101 Module 5 Classes
PYTH 101 Module 4 Functions
มุมมอง 175 ปีที่แล้ว
PYTH 101 Module 4 Functions
PYTH-101 Module 3 Loops
มุมมอง 155 ปีที่แล้ว
PYTH-101 Module 3 Loops
PYTH 101: Module 2 operators and conditionals
มุมมอง 415 ปีที่แล้ว
PYTH 101: Module 2 operators and conditionals
PYTH 101: Setting up Python 3 with VS Code on Linux
มุมมอง 1695 ปีที่แล้ว
PYTH 101: Setting up Python 3 with VS Code on Linux
PYTH-10:1 Module 1 Variables and Data Types
มุมมอง 1505 ปีที่แล้ว
PYTH-10:1 Module 1 Variables and Data Types
PYTH-101: Module 0 Installation and Course Information
มุมมอง 1265 ปีที่แล้ว
PYTH-101: Module 0 Installation and Course Information
PYTH 101 Introduction
มุมมอง 2105 ปีที่แล้ว
PYTH 101 Introduction

ความคิดเห็น

  • @tenagliac
    @tenagliac 12 วันที่ผ่านมา

    Used to swap two things with 3 exors applied to those 2 places. exor is awesome/

  • @johnh5738
    @johnh5738 13 วันที่ผ่านมา

    You lost me at hello.

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

    OSError and empty is why thank you

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

    OSError is why

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

    Hello i am new subscriber, can you please tell me what should i learn right now to get a good freelancing job opportunities with very less computation? Am am python/Django Junior developer but i didn't get any freelancing job yet, i think i should learn another or, tell me please what do you think?

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

      For any sort of job it will be highly dependent on a lot of factors, such as: - Where you live - What you're interested in - If you can handle the risk associated with being a freelancer In general I would recommend getting a good understanding of computer science basics, and developing projects that demonstrate that understanding. Languages/frameworks change all the time, but those skills in computer science are universal. Also if python./django is the only thing you know, I would recommend learning at least 1 other framework/language so you have some additional relevant experience

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

      @@canadiancoding so what fremework you recommend me with the fact that am from Ethiopia, and am i am really interested on freelancing and ready to take the risk around,?

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

    thanks eh!

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

    what the fuck

  • @KylSar-or6iw
    @KylSar-or6iw 5 หลายเดือนก่อน

    bro hands were speedy when he had to put his password🛩

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

    Since this video is getting more popular, I will give people some other cryptography topics, and links that have come up in the comments: - History of OTP - It was used heavily before computers in wartime where people would be physically given a sheet of paper for the ciphertext, and then messages would be sent out over public radio frequencies to soldiers to get their orders - Crib Dragging - This is a method that allows you to break the one time pad if you know some of the contents that are in the text - Public Key cryptography; This is how all your connections on the internet are secured - Diffie Hellman is the most popular of these schemes - I have an explainer for this on my github at github.com/descent098/diffie-hellman - Post Quantum Cryptography - Lattice-based encryption - Chalk Talk is a good channel on youtube for info about this - Encodings - What we did with the binary numbers to letters is called an encoding, there are a bunch of popular ones - UTF-8; The most commonly used encoding for text these days

  • @jack.p
    @jack.p 5 หลายเดือนก่อน

    So if there was an agent in the field, they might be given a OTP in person before leaving, then if and when a message needs to be sent, they could just broadcast it publicly in complete confidence?

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

      Yes, so old wartime schemes you would leave with a physical ciphertext, and using that ciphertext you can just broadcast out in public over radio. Often different ciphertexts were given to people of different ranks so that messages could only be read by specific people in the field depending on the operation.

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

    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?

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

      The version I explained in my video is not quantum secure afaik. I think you could make it EFFECTIVELY quantum secure if your note is long enough, but the protocol itself is not secure against quantum attacks. There are versions of the one-time pad that could be, but they're more complicated. I think what you're referring to is when people call the one time pad a "perfectly secret" scheme. All this means is that the ciphertext we use doesn't leak any information, meaning there are no side channel attacks. This is all a fancy way to say that you can't get information AT ALL about the content you're trying to encrypt, from how you encrypted it. Other methods will use the source text to generate their encryption, and so they are not "perfect secret" schemes. I can't cite sources in a youtube comment but if you google "perfect secrecy" there is a video on khan academy, and one on wolfram U that will explain the concept well. For post-quantum security there's a good channel called Chalk Talk here on youtube that cover quantum secured approaches like lattice-based cryptography.

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

      The version I explained in my video is not quantum secure afaik. I think you could make it EFFECTIVELY quantum secure if your note is long enough, but the protocol itself is not secure against quantum attacks. There are versions of the one-time pad that could be, but they're more complicated. I think what you're referring to is when people call the one time pad a "perfectly secret" scheme. All this means is that the ciphertext we use doesn't leak any information, meaning there are no side channel attacks. This is all a fancy way to say that you can't get information AT ALL about the content you're trying to encrypt, from how you encrypted it. Other methods will use the source text to generate their encryption, and so they are not "perfect secret" schemes. I can't cite sources in a youtube comment but if you google "perfect secrecy" there is a video on khan academy, and one on wolfram U that will explain the concept well. For post-quantum security there's a good channel called Chalk Talk here on youtube that cover quantum secured approaches like lattice-based cryptography.

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

    Great easy to follow tutorial. Thank you

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

    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 7 หลายเดือนก่อน

      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

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

    4:06

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

    beautiful animations

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

    Thank you so much i didnt know i had to install vx

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

    thank you so much.

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

    Thanks

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

    how the pad is exchanged?

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

      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

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

      same

  • @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 th-cam.com/video/3Tqu_EdeKWc/w-d-xo.html

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

    ty you the goat

  • @ahmedal-haboobi7918
    @ahmedal-haboobi7918 ปีที่แล้ว

    Thank you very much!

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

    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!!!

  • @user-he8qc4mr4i
    @user-he8qc4mr4i ปีที่แล้ว

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

    but how to run the code?

  • @Fried.Hunlee
    @Fried.Hunlee 2 ปีที่แล้ว

    Great tutorial thank you! Trying to prepare for my into CS class!

  • @JOSHUAGLOTV
    @JOSHUAGLOTV 2 ปีที่แล้ว

    So since you installed numpy on terminal do you have to install it on vs code ??

    • @Descent098
      @Descent098 2 ปีที่แล้ว

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

    Thank you very much bro

  • @Amy-mo9ki
    @Amy-mo9ki 2 ปีที่แล้ว

    very helpful, thank you. ✌

  • @kyokokirigiri166
    @kyokokirigiri166 2 ปีที่แล้ว

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

    this overcomplicates the one time pad immensely.

    • @toby9999
      @toby9999 2 ปีที่แล้ว

      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.