Re: Encrypt String while restricting certain characters
From: ScriptNFool (ScriptNFool_at_hotmail.com)
Date: 07/10/03
- Previous message: Raj: "User changing something on a form makes asp.net take user to login page"
- In reply to: Alek Davis: "Re: Encrypt String while restricting certain characters"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 9 Jul 2003 18:55:35 -0700
"Alek Davis" <alek_DOT_davis_AT_intel_DOT_com> wrote in message news:<OEVEJXMRDHA.2204@TK2MSFTNGP12.phx.gbl>...
> I did not try it, but logically, you should be able to use
> HttpUtility.UrlEncode and HttpUtility.UrlDecode to convert encrypted bytes
> to/from query-string compatible form. Alternatively, you can convert
> encrypted data into a base64-encoded string and append it as a last query
> string parameter. In the last scenario, you would need to treat it
> differently from a regular QueryString value by manually locating the
> beginning of the string (you must make sure that the name of the value is
> unique) and extracting the substring from beginning position till the end.
>
> Alek
>
> "ScriptNFool" <ScriptNFool@hotmail.com> wrote in message
> news:7a5ee20.0307061457.589474d9@posting.google.com...
> > Is it possible to encrypt a string but restrict certain characters in
> > the output?
> >
> > For example, I'm trying to encrypt the value of a QueryString item in
> > a web URL, and any '=' signs or '&' signs would cause problems with
> > the rest of the QueryString.
> >
> > I'm pretty new to encryption, so I don't know if this is a relatively
> > easy thing to do. Any help would be greatly appreciated.
> >
> > -SF
Thank you, I'll try it out.
-SF
- Previous message: Raj: "User changing something on a form makes asp.net take user to login page"
- In reply to: Alek Davis: "Re: Encrypt String while restricting certain characters"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|