Added Security class for encryption and decryption