Cryptopals Guided Tour - 02 - Fixed XOR @nccgroup
Cryptopals Guided Tour - 02 - Fixed XOR  @nccgroup
Uploaded December 2021 | Updated November 2026, 36 minutes ago
00:00 - Intro
01:00 - Iterating over two bytestrings in tandem
01:50 - Iterating by index
02:45 - Iterating by zip
03:40 - How to benchmark a function in iPython; benchmarking index and zip methods
04:50 - Implementing xor (first method: appending to bytestring)
06:48 - Implementing xor (second method: appending to list)
07:20 - Implementing xor (third method: joining bytes from a generator expression)
08:16 - Implementing xor (fourth method: calling bytes() on a generator expression)
08:47 - Benchmarking xor implementations
10:10 - Starting the solution script
10:55 - Wrapping two-argument bytes_xor, adding more features
13:47 - When to use assertions in Python (and when not to)
15:35 - Writing the main block
17:00 - Testing the solution

Further reading:
en.wikipedia.org/wiki/Exclusive_or#Computer_science
docs.python.org/3/library/functions.html#zip
PEP introducing generator expressions: python.org/dev/peps/pep-0289
docs.python.org/3/glossary.html#term-generator
docs.python.org/3/using/cmdline.html#cmdoption-O
ipython.readthedocs.io/en/stable/interactive/magics.html#magic-timeit
Cryptopals Guided Tour - 02 - Fixed XORCryptopals Guided Tour - 16 - CBC bitflipping attacksNCC Group and Al Tamimi Round Table DiscussionNCC Group - About UsMichael Poultsakis - Senior IT Security ConsultantBlack Hat USA 2025: Reinventing Agentic AI Security with Architectural ControlsNCC Group Registry Data EscrowView - Portal FeaturesThe life of a Data Privacy ConsultantOT/IT Cyber Security Webinar Series - 3. Achieving 24/7 ResilienceThe Big Three webinar - Why is being proactive towards cyber resilience so important?NCC Groups Paul Vlissidis - Staying safe online
NCC Group Global |

Cryptopals Guided Tour - 02 - Fixed XOR

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER