Day 4 - Security Through Obscurity [Revival of Code 2023 - Advent of Code 2016] @0xdf
Day 4 - Security Through Obscurity [Revival of Code 2023 - Advent of Code 2016]  @0xdf
Uploaded June 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 4 challenge, Security Through Obscurity, involves parsing funky lines of text to get an encrypted name, a sector number, and a checksum. I'll first validate lines using the checksum, and then use the sector number to do a shift decryption on the encoded name looking for a specific clear text.

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

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

[00:00] Introduction
[00:47] Challenge Part 1
[02:06] genday.sh script
[02:43] Strategy
[03:23] Room class tests
[06:49] Room class, __init__
[09:19] Room class, is_valid
[12:06] Using failed tests to debug
[14:00] parse function
[14:36] part 1 function
[15:02] part 1 tests (should have been first)
[16:11] Passing tests, solving part 1
[16:44] Challenge part 2
[17:40] decrypted_name test
[19:17] Rabbit hole into useless shift function
[21:36] Trying to write tests for shift, realizing it was a bad idea
[23:50] Combining shift back into decrypted_name
[24:35] Solving part 2
[27:40] Recap of part 2

#ctf #adventofcode #revivalofcode #python
Day 4 - Security Through Obscurity [Revival of Code 2023 - Advent of Code 2016]Day 2: Cube Conundrum [AOC2023 Python]Day 15 - Timing is Everything [Revival of Code 2023 - Advent of Code 2016]Chrome Local Overrides [Snowball Showdown - Sans Holiday Hack 2024]Day 18: Lavaduct Lagoon [AOC2023 Python]Directory Traversal / File Read Into Zip with Python [HackTheBox Snoopy]Triple Knock [HackTheBox - Coding Challenge]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]
0xdf |

Day 4 - Security Through Obscurity [Revival of Code 2023 - Advent of Code 2016]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER