Day 21 - Scrambled Letters and Hash [Revival of Code 2023 - Advent of Code 2016] @0xdf
Day 21 - Scrambled Letters and Hash [Revival of Code 2023 - Advent of Code 2016]  @0xdf
Uploaded August 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 21 challenge, Scrambled Letters and Hash, involves processing a bunch of instructions that scramble a string, and then doing it in reverse.

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:20] Challenge part 1
[01:01] genday.sh / input
[01:35] Creating Password class with stub functions
[06:35] Writing tests for various methods
[09:06] Test for full part 1 example
[11:10] __init__ function
[11:45] swap_position
[12:40] swap_letters
[13:20] rotate
[14:21] rotate_by_letter
[15:40] reverse
[16:45] move
[17:51] scramble
[22:40] Debugging typos
[28:32] Passing tests
[29:20] Debugging typos
[30:24] Submitting part 1
[30:39] Challenge part 2
[30:53] Stubbing unscramble
[31:29] Part 2 tests
[32:18] unscrabmle function
[35:10] Debugging typos
[36:10] Fixing move function
[36:28] Solving part 2
[36:46] Conclusion

#ctf #adventofcode #revivalofcode #python
Day 21 - Scrambled Letters and Hash [Revival of Code 2023 - Advent of Code 2016]Red-Nosed Reports [Day 2 - Advent of Code 2024 - Python]Decrypting AsyncRAT Configuration Values with CyberChefDay 13 - A Maze of Twisty Little Cubicles [Revival of Code 2023 - Advent of Code 2016]PCAP and Web Log Forensics [Sans Holiday Hack 2022 - Web Ring]Python Debugging [Chemistry - HackTheBox]Claw Contraption [Day 13 - Advent of Code 2024 - Python]Day 11 - Radioisotope Thermoelectric Generators [Revival of Code 2023 - Advent of Code 2016]Trash Compactor [AOC2025 Day 6]Hash Extension Attack [HackTheBox Ouija]Analysis of a Python / GRPC Application [PC - HackTheBox]Configuring VSCode to Debug Python [AOC2023 Python]
0xdf |

Day 21 - Scrambled Letters and Hash [Revival of Code 2023 - Advent of Code 2016]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER