News  [SoftwareSite

Latest News
Older News
RSS Feed
 
Complete Projects
Useful Classes
Top Downloads
Message Board
AllAPI.net
 
Send Comments
Software License
Mentalis.org Buttons
Donate
 
Forums -> Security Library Forum
 
"Could not decrypt data"  
by Jesse Nesbitt [mindtriggerz at gmail dot com]
posted on 2005/05/08

I'm creating an application that uses XML files to store encrypted information. I can't write the strings directly to file, so I convert them to hex, then convert them to a byte array before decryption. The problem is, I keep getting a "Could not decrypt data" exception. Any one know why?
I'm using v1.1.4322 and a RijndaelCryptoServiceProvider.

-----Stack Trace-----
An unhandled exception of type 'System.Security.Cryptography.CryptographicException' occurred in microsoft.visualbasic.dll

Additional information: Could not decrypt data.
at Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack)
at Theairis_Protected_License_Runtime.diagLoading.decrypttxt(Byte[] encrypted, String key) in C:\Documents and Settings\anucd\My Documents\Visual Studio Projects\Theairis Protected License Runtime\diagLoading.vb:line 156

 

Copyright © 2002-2007, The Mentalis.org Team. All rights reserved.
This site is located at http://www.mentalis.org/
Send comments to the webmaster.