Re: some characeter problem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Jason Huang wrote:
Hi,

In my C# Net I have a string after encrypting as:
LVp0XG2enhBUFifY+41kQ
In my ASPNet I want to do something is the IE6 browser:
http://MyIP/MyWeb.aspx?TestNo=LVp0XG2enhBUFifY+41kQ
and my C# program will decrypt the "LVp0XG2enhBUFifY+41kQ" to a real number.
However, the "+" in the "LVp0XG2enhBUFifY+41kQ" just appears as a space so my
program can't decrypt correctly.
Would someone give me some advice?
Thanks for help.

Jason

You have to encode the value properly.

Use the Server.UrlEncode method to encode values to put in an url.

--
Göran Andersson
_____
http://www.guffa.com
.



Relevant Pages

  • Re: some characeter problem
    ... In my C# Net I have a string after encrypting as: ... In my ASPNet I want to do something is the IE6 browser: ...
    (microsoft.public.dotnet.languages.csharp)
  • some characeter problem
    ... In my C# Net I have a string after encrypting as: ... In my ASPNet I want to do something is the IE6 browser: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: DES ECB Encryption cannot decrypt
    ... > PaddingMode.None for both encrypting and decrypting algorithm object. ... > you could not use that code because the encryptor returned a byte array ... pass the string around and use FromBase64 in the decrypting method ...
    (microsoft.public.dotnet.security)
  • start commandline.exe form aspnet application
    ... ASPNET user. ... Public Shared Sub CreateProcessAsUser(ByVal ProcessName As String, ... ByVal CommandLineArgs As String, ByVal WorkingDirectory As String) ... IntPtr, ByVal dwDesiredAccess As Int32, _ ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Encryption and byte array to string conversion
    ... I have a string that I need to encrypt (the result ... new byteArray -> ToBase64 ->encryptedString... ... > Regarding encrypting data I have found 3 implementations: ... Base64 encoding the data instead. ...
    (microsoft.public.dotnet.framework.compactframework)