Cryptography with Python! XOR

preview_player
Показать описание
Tutorial introducing the XOR function and its use in cryptography. Learn how to use the XOR function within Python, how to XOR strings and create a simple XOR cipher to encrypt and decrypt messages.

DISCLAIMER: This is a simplified example of cryptography. Please do not try to use or implement this in real world applications.

The notebook/code used can be found in the below GitHub repository link under the "Cryptography" folder.

CONNECT:

|-Video Chapters-|
0:00 - Intro
0:20 - Definition of exclusive or (XOR)
1:24 - Printing a XOR truth table
2:25 - Illustrating the bijection of XOR
5:50 - ASCII characters and XOR
17:10 - Creating an XOR cipher
25:38 - Uses of XOR within Cryptography
26:37 - References and additional learning
Рекомендации по теме
Комментарии
Автор

According to this table at the start, XOR goes like this: Absolute(Byte1 - Byte2) or | Byte1 - Byte2 |

zigaudrey
Автор

at t=[12:17 / 27:35] why ad by 7 and floor division by 8? (for the floor division im guessing 8 for Bytes, but why add by 7?)
I am trying to solve a decipher challenge where i have a 28 bit hex (string) where I have to use 2 digits of ascii as the key. I tried regex'n different ranges, but still cant get the answer, tho this video did help me understand more than I did yesterday thats why i thumbed up and subscribed! Thank you.
I appreciate any feedback that will help lead me to that magical moment we all love to experience.

GuiTrisTlif
Автор

full_ascii = [chr(i) for i in range(128)]

n_Visible