Day 14 - One-Time Pad [Revival of Code 2023 - Advent of Code 2016] @0xdf
Day 14 - One-Time Pad [Revival of Code 2023 - Advent of Code 2016]  @0xdf
Uploaded July 2023 | Updated November 2026, 3 hours ago
Python Discord is doing an event called Revival of Code, where we work through the 2016 Advent of Code, one challenge every two days. The day 14 challenge, One-Time Pad, is another challenge brute forcing MD5 hashes (like day 5). This time I have to regularly check the next 1000 hashes, which means caching is key!

Repo for Advent of Code 2016 Solutions: gitlab.com/0xdf/aoc2016
Intro video for this event: youtube.com/watch?v=qEPpsS0StQI
Configuring VSCode to debug PyTest: youtube.com/watch?v=zL2YTdIj3R8
Real Python post with templates: realpython.com/python-advent-of-code

☕ Buy Me A Coffee: buymeacoffee.com/0xdf

[00:00] Introduction
[00:16] Challenge part 1
[01:50] genday.sh / input
[02:12] cached_md5 test
[05:17] cached_md5 function
[07:07] get_triple function
[08:17] get_triple test
[10:28] is_valid_key test
[14:26] is_valid_key function
[15:30] generate_keys test
[16:58] generate_keys function
[18:40] part1 test
[19:18] part1 function
[20:41] Solving part 1
[21:01] Challenge part 2
[21:38] Test for stretched md5
[22:20] Updating main for new md5
[24:42] Debugging typos
[27:00] part2 test
[27:48] part2 function, updating all
[29:10] Running test, debugging issues
[30:25] More tests for generate_keys
[31:46] Found issue, fixing, and solving

#ctf #adventofcode #revivalofcode #python
Day 14 - One-Time Pad [Revival of Code 2023 - Advent of Code 2016]Introduction [Advent of Code 2024]Disk Fragmenter [Day 9 - Advent of Code 2024 - Python]Reassembling Werkzeugs Pin - Hacking Flask Debug Mode [Part 1]Keypad Conundrum [Day 21 - Advent of Code 2024 - Python]Modifying .NET Exe: Encrypt to Decrypt [HackTheBox Coder]Day 20 - Firewall Rules [Revival of Code 2023 - Advent of Code 2016]Day 5 - How About a Nice Game of Chess? [Revival of Code 2023 - Advent of Code 2016]Hacking the HackTheBox Code EditorRelic Maps [Forensics - Cyber Apocalypse 23 CTF]Guard Gallivant [Day 6 - Advent of Code 2024 - Python]RAM Run [Day 18 - Advent of Code 2024 - Python]
0xdf |

Day 14 - One-Time Pad [Revival of Code 2023 - Advent of Code 2016]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER