This is a set of notes, code and solution to some exercises of the book "An Introduction to Mathematical Cryptography by Jeffrey Hoffstein, Jill Pipher, Joseph H. Silverman". OCD stands for open cryptography discussions. Solutions might be very wrong.