What you need to do is create two numbers which when used together give you
a unique / secure value.

So when then user subscribesto your site  get the regid and format like

000000001 (9 digits) (use numberformat)

and also create a random value of length 21 (for example) and store to with
your registation details
as regkey

eg: sugfsfsygf4549yhi32bn (21 digits )

(There is a radompassword tag in taggallery to do this....)

Now in your email send


whatever.cfm?Key=sugfsfsygf4549yhi32bn000000001

and on whatever.cfm do

select *
from  regdetails
Where regid = left(Key,9)
and regkey = right(Key,21)

You can encypt the whole thing more using any of the cf encryption function,
but make sure to urlencode them ....


~Justin




> You know how sometimes when you subscribe to something or update something
> on the net you get an email message back with some cryptic key or
> verification code in it that might look like this
>
> tc.968809886.gfgchekkhdlkdfdeelpe
>
> or this
>
> 3A9F9A4AE5E0D311865700508B97404D9DE2EE
>
> They seem to be generated randomly from something, maybe some
extrapolation
> of ASCII values or something. Does anyone know how this type of thing is
> done (with a CF slant of course).
>
>
> ********************************
> Kevin Parker
> Service and Communication
> WorkCover Corporation
>
> [EMAIL PROTECTED]
>
> ph:  +61 8 82332548
> fax: +61 8 82332000
> ********************************
>
>
>
>
>
****************************************************************************
> This e-mail is intended for the use of the addressee only. It may contain
> information that is protected by legislated confidentiality and/or is
> legally privileged. If you are not the intended recipient you are
prohibited
> from disseminating, distributing or copying this e-mail. Any opinion
> expressed in this e-mail may not necessarily be that of the WorkCover
> Corporation of South Australia. Although precautions have been taken, the
> sender cannot warrant that this e-mail or any files transmitted with it
are
> free of viruses or any other defect.
> If you have received this e-mail in error, please notify the sender
> immediately by return e-mail and destroy the original e-mail and any
copies.
>
****************************************************************************
> --------------------------------------------------------------------------
----
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>
>

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to