lecture 12 protocols for security 3012746