HighTechTalks DotNet Forums  

Invalid length for a Base-64 char array

Dotnet Security microsoft.public.dotnet.security


Discuss Invalid length for a Base-64 char array in the Dotnet Security forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Developer22
 
Posts: n/a

Default Invalid length for a Base-64 char array - 09-17-2007 , 01:30 PM






I'm hoping someone can help. I know this probably isn't THE correct place,
but I'm not sure where to turn. I'm using the .NET Enteprise Library's
Cryptographer class.

I am encoding a simple 9 digits and constantly getting this error when
decoding. It worked fine for a while.

Error:
Invalid length for a Base-64 char array.

Code:
Line 29: public static string DecryptString( string val )
Line 30: {
Line 31: return Cryptographer.DecryptSymmetric( "RijndaelManaged", val );
Line 32: }

The value:
123456789

Can someone please help? I've been Googling, but not coming up with
anything.

Thank you for your time!


Reply With Quote
  #2  
Old   
Vadym Stetsiak
 
Posts: n/a

Default Re: Invalid length for a Base-64 char array - 09-18-2007 , 05:20 PM






Hello, Developer22!

What code do you use to encrypt that value? What output do you get from
Encrypt method? What is the length of that output?

--
With best regards, Vadym Stetsiak.
Blog: http://vadmyst.blogspot.com

You wrote on Mon, 17 Sep 2007 12:30:06 -0500:

D> I'm hoping someone can help. I know this probably isn't THE correct
D> place, but I'm not sure where to turn. I'm using the .NET Enteprise
D> Library's
D> Cryptographer class.

D> I am encoding a simple 9 digits and constantly getting this error
D> when decoding. It worked fine for a while.

D> Error:
D> Invalid length for a Base-64 char array.

D> Code:
D> Line 29: public static string DecryptString( string val )
D> Line 30: {
D> Line 31: return Cryptographer.DecryptSymmetric( "RijndaelManaged",
D> val );
D> Line 32: }

D> The value:
D> 123456789

D> Can someone please help? I've been Googling, but not coming up with
D> anything.

D> Thank you for your time!



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.