Hmmmm... there's a code smell there, but I'm having trouble identifying it. Do you only use the encode/decode for passwords?
>My class String has two methods Encode and Decode where I can encode and decode a string. The encode and decode code has to be the "same" as my VFP code (to make ASP.NET compatible with VFP app). So I use my class String as following:
>
>
>cPassword = "ABCD";
>string Decoded;
>Decoded = MyNameSpace.String.Decoded( cPassword );
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer