SQL Server administration and T-SQL development, Web Programming with ASP.NET, HTML5 and Javascript, Windows Phone 8 app development, SAP Smartforms and ABAP Programming, Windows 7, Visual Studio and MS Office software

Development Forums for Programmer, Administrators and Users

Development resources, articles, tutorials, code samples and tools and downloads for ASP.Net, SQL Server, R Script, Windows, Windows Phone, AWS, SAP HANA and ABAP, like SAP UI5, Screen Personas, etc.

Length of the data to decrypt is invalid.

Last post 08-25-2009, 7:08 AM by eralper. 0 replies.
Sort Posts:
  •  08-25-2009, 7:08 AM 12782

    Length of the data to decrypt is invalid.

    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?

View as RSS news feed in XML
Copyright © 2004 - 2020 Eralper YILMAZ. All rights reserved.
Community Server by Telligent Systems