Hello while decrypting an encrypted string value in .net code, I got the following error messages.
Length of the data to decrypt is invalid.
at System.Security.Cryptography.CryptoAPITransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)
at System.Security.Cryptography.CryptoStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.StreamReader.ReadBuffer()
at System.IO.StreamReader.ReadToEnd()
at BSH.Octopus.SystemFramework.SymmCrypto.Decrypting(String Source, String Key) in C:\Kodyaz\Service2008\CallCenter\SystemFramework\Encryption.vb:line 136
at BSH.Octopus.SystemFramework.TripleDES.Decrypt(String data) in C:\Kodyaz\Service2008\CallCenter\SystemFramework\Encryption.vb:line 158
Any idea what might cause this error?
Thanks.