Foundation of Cryptography vol-1 Basic Tools