You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Mike Oestereter <mi...@gmail.com> on 2007/01/23 21:05:41 UTC

encrypt query string

Hi

I want to encrypt (most of) the query string part of a tapestry webapp.

So instead of having an URL like..

http://localhost:8080/myapp/dir/Page,component.subcomponent.subsubcomp.subsubsubcomp.sdirect?sp=Sblahblah

..I would like something like..

http://localhost:8080/myapp/AJHKSGFDLJHAGSDFLHJSDLFAGSDFGLRMWNEBRMWNBEFSDFKJSHDFN
WLKDJSLKDJFLSKJDFL

I don't want to spend too much time on this so I was wondering if
anybody has done this before or have a quick answer?

Thanks


Cheers
Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: encrypt query string

Posted by Michael Gloegl <mi...@alemo.de>.
Hi,

a custom encoder from the friendly-url guide 
http://tapestry.apache.org/tapestry4.1/usersguide/friendly-urls.html 
could be just as well used for unfriendly-urls

Michael

> I want to encrypt (most of) the query string part of a tapestry webapp.
> 
> So instead of having an URL like..
> 
> http://localhost:8080/myapp/dir/Page,component.subcomponent.subsubcomp.subsubsubcomp.sdirect?sp=Sblahblah 
> 
> 
> ..I would like something like..
> 
> http://localhost:8080/myapp/AJHKSGFDLJHAGSDFLHJSDLFAGSDFGLRMWNEBRMWNBEFSDFKJSHDFN 
> 
> WLKDJSLKDJFLSKJDFL
> 
> I don't want to spend too much time on this so I was wondering if
> anybody has done this before or have a quick answer?
> 
> Thanks
> 
> 
> Cheers
> Mike
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


RE: encrypt query string

Posted by "Robert J. Walker" <rw...@mshare.net>.
If you're using Tapestry 4, friendly URL support could probably help you here. Write a class that implements ServiceEncoder. Then implement decode(), where you read your encrypted data and translate it to standard Tapestry parameters, and encode(), where you do the reverse. Then apply the encoder to the tapestry.url.ServiceEncoders configuration in your hivemodule.xml file. Details can be found at http://tapestry.apache.org/tapestry4/UsersGuide/friendly-urls.html.

Hope that helps,

Robert W.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org