Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
https://stackoverflow.com/questions/67724103/how-to-serialize-arraylist-into-concrete-type-using-system-text-json by dbc_MinLength
Unhandled exception. System.Security.Cryptography.CryptographicException: The input data is not a complete block.
   at System.Security.Cryptography.SymmetricPadding.GetCiphertextLength(Int32 plaintextLength, Int32 paddingSizeInBytes, PaddingMode paddingMode)
   at System.Security.Cryptography.UniversalCryptoEncryptor.UncheckedTransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)
   at System.Security.Cryptography.CryptoStream.FlushFinalBlockAsync(Boolean useAsync, CancellationToken cancellationToken)
   at System.Security.Cryptography.CryptoStream.FlushFinalBlock()
   at System.Security.Cryptography.CryptoStream.Dispose(Boolean disposing)
   at System.IO.Stream.Close()
   at System.IO.StreamWriter.CloseStreamFromDispose(Boolean disposing)
   at System.IO.StreamWriter.Dispose(Boolean disposing)
   at System.IO.TextWriter.Dispose()
   at Program.Encrypt(Int32 key, String plainText, Int32 iv)
   at Program.Encrypt(Int32 key, String plainText, Int32 iv)
   at Program.Main()
Command terminated by signal 6
Last Run: 6:16:29 am
Compile: 0.01s
Execute: 0.18s
Memory: 13.34Mb
CPU: 0.19s