Author: bammidi | Posted on: 8/30/2010 6:45:51 AM | Views : 305

I am getting the foolowing error {"PKCS7 padding is invalid and cannot be removed." }  for the below code while decrypting .
I am able to encryt the data sucessfully but getting the above error while decrypting in the function --  public string Decrypt(string cipherText, string Password) .
Near cs.Close() giving the above exception.
 
 
 
using System;
using System.Data;
using System.Text;
using Go to the complete details ...