>how to do SQL injection, how to use rainbow tables to figure out hashes, how to use steganography to hide data in images, and more.
I feel like there are more practical and timeless topics that will still be relevant in 2040. Frameworks (abstraction) have largely solved SQL injection and bad cryptography.
Personally I would avoid a cybersecurity focused corriculum and just focus on regular software engineering. Being able to think like who you are attacking and knowing the common pitfalls is most of the battle.