TriplesDES error
-
Hi I searched google for encryption algorithms to use in vb 2008 and got one listed in CodeProject listed at Making TripleDES Simple in Visual Basic .NET[^] It encrypts the string fine but is not able to decrypt it and shows the following message. Length of the data to decrypt is invalid. I searched google for the solution but not got any satisfying one. what to do now?
TheMrProgrammer http://www.icbse.com/2009/funny-exam-answers-school-students http://download.cnet.com/TheCalcMan/3000-2094\_4-10958266.html
-
Hi I searched google for encryption algorithms to use in vb 2008 and got one listed in CodeProject listed at Making TripleDES Simple in Visual Basic .NET[^] It encrypts the string fine but is not able to decrypt it and shows the following message. Length of the data to decrypt is invalid. I searched google for the solution but not got any satisfying one. what to do now?
TheMrProgrammer http://www.icbse.com/2009/funny-exam-answers-school-students http://download.cnet.com/TheCalcMan/3000-2094\_4-10958266.html
Prankur Rusia wrote:
what to do now?
fix the bug in your code. Make sure what the encryption generated is entered into the decryptor without any change. without any details, noone can help you. :)
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
-
Prankur Rusia wrote:
what to do now?
fix the bug in your code. Make sure what the encryption generated is entered into the decryptor without any change. without any details, noone can help you. :)
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
Hi Luc, Can you please tell me what details you want? My code is exactly as listed in the article shown above. The string to encrypt is: encryptitman The key I use is: 123456789012345678901234 The iv I use is : 12345678 The encryption goes on fine but the code is not able to decrypt the encrypted string. I supply the encrypted string exactly to the decrypt function.
TheMrProgrammer http://www.icbse.com/2009/funny-exam-answers-school-students http://download.cnet.com/TheCalcMan/3000-2094\_4-10958266.html
-
Hi Luc, Can you please tell me what details you want? My code is exactly as listed in the article shown above. The string to encrypt is: encryptitman The key I use is: 123456789012345678901234 The iv I use is : 12345678 The encryption goes on fine but the code is not able to decrypt the encrypted string. I supply the encrypted string exactly to the decrypt function.
TheMrProgrammer http://www.icbse.com/2009/funny-exam-answers-school-students http://download.cnet.com/TheCalcMan/3000-2094\_4-10958266.html
The article is followed by some discussions, where one of the participants is having the problems you're having, and he came up with a solution for it. If it still would not work, you'd better post there. :)
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.