I am tyring to migrate my ASP.Net application to 3.5 framework and to Enterprise Library 4.1.
Application encrypts the user passwords and stores the encrypted strings in the database. Application uses TripleDESCryptoServiceProvider to encrypt the password. My existing code to decrypt the passwords is throwing the error "Bad Data".
Does anyone encountered the same issue or know the solution?
My decryption code line looks like this:
decryptedText = Cryptographer.DecryptSymmetric("TripleDESCryptoServiceProvider", str);
Thanks in advance.