You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Angelo Chen <an...@yahoo.com.hk> on 2007/10/11 05:00:13 UTC

unique ID

Hi,

Sorry, this is not Tapestry related, I need to generate a unique ID so that
user can confirm their registration by clicking a link like:
http://mydomain.com/confirm/1234568798, if I use java.rmi.server.UID, the
code does not look good for this job:-5a9a0257:1158cfbcadf:-7fff, any hints
to share? thanks.

A.C.
-- 
View this message in context: http://www.nabble.com/unique-ID-tf4604826.html#a13148607
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: unique ID

Posted by Nick Westgate <ni...@key-planning.co.jp>.
Encode to hex or base64 to make the link "presentable".

Also the user's id should be unique, so use that for uniqueness.
Store a randomized token (number or string etc) in the user's
data and then encode/encrypt the id and the token in the link.

Cheers,
Nick.


Angelo Chen wrote:
> Hi,
> 
> Sorry, this is not Tapestry related, I need to generate a unique ID so that
> user can confirm their registration by clicking a link like:
> http://mydomain.com/confirm/1234568798, if I use java.rmi.server.UID, the
> code does not look good for this job:-5a9a0257:1158cfbcadf:-7fff, any hints
> to share? thanks.
> 
> A.C.

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