picoCTF str_xor Function Explained (XOR Cypher)

  Рет қаралды 1,336

Sanjin Dedic

Sanjin Dedic

Күн бұрын

Пікірлер: 6
@thienchi1147
@thienchi1147 Жыл бұрын
nice content, thank u
@adryelgainza1686
@adryelgainza1686 2 жыл бұрын
I have one question. What is the "return "".join([chr(ord(secret_c) ^ ord(new_key_c)) for (secret_c,new_key_c) in zip(secret,new_key)]) " doing? Is this the actual implementation of xor?
@SanjinDedic
@SanjinDedic 2 жыл бұрын
Yes it is the implementation ord(secret_c )^ord(new_key_c) actually does the xor and returns an ineger value (which I keep representing in binary) the for loop simply cycles through the charcters in secret and the characters in message If I wrote that code myself in a way that is meant to be understood I would use 5 lines instead they used 2 variable for loops, list comprehensions and multiple operations all on one line
@adryelgainza1686
@adryelgainza1686 2 жыл бұрын
@@SanjinDedic Oh alright thank you!
@tonyitalia7798
@tonyitalia7798 2 жыл бұрын
Thank's you. Like this.
@SanjinDedic
@SanjinDedic 2 жыл бұрын
Happy to help! I thought that this code was too complicated for an easy challenge so I made this to explain it, hopefully the XOR stuff makes a bit more sense now
XOR Cipher in Python - Simple Cryptography
10:09
NeuralNine
Рет қаралды 3,9 М.
The Power of XOR in Cryptography
5:24
Robotic Nation
Рет қаралды 1,1 М.
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Cryptopals Guided Tour - 03 - Single-byte XOR cipher
29:03
NCC Group Global
Рет қаралды 3,5 М.
Vigenere Cypher in Python -- picoCTF 2022 Challenge
18:02
Sanjin Dedic
Рет қаралды 266
PicoCTF 2022: Forensics Teacher + Hacker Walkthrough
1:22:18
Sanjin Dedic
Рет қаралды 504
HSCTF -  XORing Data (Hidden Flag)
7:39
John Hammond
Рет қаралды 17 М.
The power of XOR - Gary Explains
5:55
Gary Explains
Рет қаралды 22 М.
How To Actually Achieve Your Goals in 2025 (Evidence-Based)
15:15
Google’s Quantum Chip: Did We Just Tap Into Parallel Universes?
9:34
Single-Byte XOR | CSAW CTF "babycrypto"
7:23
John Hammond
Рет қаралды 45 М.
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.