When I was trying to learn C at 15 or so I tried to implement Solitaire crypto from cryptonomicon as part of some programming challenge:
https://en.wikipedia.org/wiki/Solitaire_(cipher)
Failed but learnt a lot about memory management :)
Failed but learnt a lot about memory management :)