Code: Select all
Exception Type:
System.Security.Cryptography.CryptographicException
Message - Source
Padding is invalid and cannot be removed. - mscorlib
Stack Track
at System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)
at System.Security.Cryptography.CryptoStream.FlushFinalBlock()
at System.Security.Cryptography.CryptoStream.Dispose(Boolean disposing)
at System.IO.Stream.Close()
at SimonTHockeySimulator.SimonT.EncryptFile(String strInputFile, String strOutputFile, String strKeyPassword, String strIVPassword, CryptoAction Direction, ZipAction Zip, Boolean booDeleteInput)
I also tried reverting to version 2.2.5 and got the same error.