Re: generated jscript link and urlencode

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



Hey Greg,

"greg" <info@xxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:eSzuz1VyFHA.3720@xxxxxxxxxxxxxxxxxxxxxxx
>I know this is more JS problem but this newsgroup is my home!!! :)
>
> in my page i have something like
> link.NavigateUrl="javascript:window('some url?tkt=yyy%2kjh')
>
> now contents of tkt is encrypted (in c#) userid
> after encryption of course I urlencode
>
> now when the new browser window (after clicking that link) pops up
> I see that somehow in the process of cicking off new window
> Javascript urldecoded the contents of tkt parameter like instead of %20
> putting some slashes etc etc
> of course decryption does not work with bad url

I just had the same problem. My solution was to convert the encrypted byte
array to hex digits. In your case you'd end up with something like 'some
url?tkt=A2190D5C83'.

Christoph


.



Relevant Pages

  • generated jscript link and urlencode
    ... after encryption of course I urlencode ... now when the new browser window pops up ... Javascript urldecoded the contents of tkt parameter like instead of %20 ... of course decryption does not work with bad url ...
    (microsoft.public.dotnet.framework.aspnet)
  • jscript and urlencode problem
    ... after encryption of course I urlencode ... now when the new browser window pops up ... Javascript urldecoded the contents of tkt parameter like instead of %20 ...
    (microsoft.public.scripting.jscript)
  • Re: 128 bit encryption
    ... With your browser window ... > open click help at top tool bar then click "about" and info should be ... >> How do you get 128 bit encryption on Microsoft Windows ...
    (microsoft.public.security)
  • Re: 128 bit encryption
    ... explorer 6.0 which I use has 128 bit encryption. ... With your browser window ... > How do you get 128 bit encryption on Microsoft Windows ...
    (microsoft.public.security)