Similar Items: Mathematics of public key cryptography