Implemented Encryption and Decryption under methods class