Code and notes for the Network Security lecture