These codes are really just little puzzles, modern cryptography has no weaknesses of the kind these codes have.
There are even sites that teach you about bad modern cryptography, like cryptohack [0] but in general the kind of skills you learn there won't be useful either unless you happen to find a piece of software that rolled their own crypto and did something really dumb (which does happen, occasionally, see the Sony PS3 hack where they used a not-so-random value for crypto, which made it broken)
[0]: https://cryptohack.org/