标题:AES解密加密的数据问题
取消只看楼主
nj_first
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2007-8-20
 问题点数:0 回复次数:0 
AES解密加密的数据问题
用AES解密加密的数据时报错!知道的请指点一下
未处理 System.Security.Cryptography.CryptographicException
Message="要解密的数据的长度无效。"
Source="mscorlib"
StackTrace:
在 System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)
在 System.Security.Cryptography.CryptoStream.Read(Byte[] buffer, Int32 offset, Int32 count)
在 TestApp.RijndaelEnhanced.DecryptToBytes(Byte[] cipherTextBytes) 位置 D:\Visual Studio 2005\Projects\TestApp\RijndaelEnhanced.cs:行号 650
在 TestApp.RijndaelEnhanced.Decrypt(Byte[] cipherTextBytes) 位置 D:\Visual Studio 2005\Projects\TestApp\RijndaelEnhanced.cs:行号 597
在 TestApp.HttpVisit.DecryptText(Byte[] data, Byte[] key, Byte[] salt) 位置 D:\Visual Studio 2005\Projects\TestApp\HttpVisit.cs:行号 169
在 TestApp.HttpVisit.requestVisit() 位置 D:\Visual Studio 2005\Projects\TestApp\HttpVisit.cs:行号 106
在 TestApp.Form1.loginButton_Click(Object sender, EventArgs e) 位置 D:\Visual Studio 2005\Projects\TestApp\Form1.cs:行号 25
在 System.Windows.Forms.Control.OnClick(EventArgs e)
在 System.Windows.Forms.Button.OnClick(EventArgs e)
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
在 System.Windows.Forms.Button.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
在 System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
在 System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
在 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
在 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
在 System.Windows.Forms.Application.Run(Form mainForm)
在 TestApp.Program.Main() 位置 D:\Visual Studio 2005\Projects\TestApp\Program.cs:行号 17
在 System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
在 System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
在 Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
在 System.Threading.ThreadHelper.ThreadStart_Context(Object state)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
在 System.Threading.ThreadHelper.ThreadStart()
搜索更多相关主题的帖子: AES 数据 解密 
2007-09-05 10:34



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-167772-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.155062 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved