1

Closed

throws Length of the data to decrypt is invalid. error while logging in.

description

I downloaded the sources, and debuged in vs 2010. Error thrown while logging in.
 

scenario:

I input: account: test, password: 12345678, server: comsvr
then click "connect".

then the error throws at TripleDesStringEncryptor.cs line 45. the source code is "cryptoStream.FlushFinalBlock();"

error description:

Length of the data to decrypt is invalid.

stack trace:
 
at System.Security.Cryptography.CryptoAPITransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)
at System.Security.Cryptography.CryptoStream.FlushFinalBlock()
at Cyclops.Core.Resource.Security.TripleDesStringEncryptor.Transform(String text, ICryptoTransform transform) in D:\open sources\Cyclops Chat\trunk\Cyclops.Core.Resource\Security\TripleDesStringEncryptor.cs:line 45
at Cyclops.Core.Resource.Security.TripleDesStringEncryptor.DecryptString(String encryptedText) in D:\open sources\Cyclops Chat\trunk\Cyclops.Core.Resource\Security\TripleDesStringEncryptor.cs:line 30
at Cyclops.Core.Resource.UserSession.AuthenticateAsync(ConnectionConfig info) in D:\open sources\Cyclops Chat\trunk\Cyclops.Core.Resource\UserSession.cs:line 178
at Cyclops.MainApplication.ViewModel.LoginViewModel.AuthenticateAction(PasswordBox passwordBox) in D:\open sources\Cyclops Chat\trunk\Cyclops.MainApplication\ViewModel\LoginViewModel.cs:line 225
Closed Sep 15, 2011 at 5:01 PM by Harr
Fixed

comments

Harr wrote Aug 30, 2011 at 4:19 PM

thanks for your report, I am in vacation now (till 9th of sept) and will fix the issue later

wrote Sep 15, 2011 at 5:01 PM

wrote Feb 13, 2013 at 6:52 PM

wrote May 15, 2013 at 11:57 PM