Various types of attacks on Cryptosystems