Having problem while decrypting my credentials.

Nov 13, 2009 at 2:16 PM

When i set Encrypted property of my webservice's IWebAuthendicationHeader -that is assigned to my webservice's IWebAuthendicationHeaderValue property such as:

 IWebAuthendicationHeader.Encrypted = "true";
It throws ann exception: 
"System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Security.Cryptography.CryptographicException: Length of the data to decrypt is invalid.
   at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)"
My pass is of 9 characters, username is just 4 characters and key to crypto is 4 characters. How can i resolve this?
Thanks...
Coordinator
Nov 13, 2009 at 3:47 PM

Try using a longer crypto key