I'm pretty sure there is a createUUID() function in CF5.  But if you'r
eusing it as a database key, you'll want to generate it with your database
probably, so just set the primary key column to be type UUID/GUID if you
can.  If you can't, set it to varchar(35) and use the CF createUUID() in
your INSERT statement.

> -----Original Message-----
> From: Che Vilnonis [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 09, 2003 1:38 PM
> To: CF-Talk
> Subject: RE: Another simple question...
>
> can you do UUID in CF5? how do you decrypt it?
>   -----Original Message-----
>   From: Barney Boisvert [mailto:[EMAIL PROTECTED]
>   Sent: Tuesday, December 09, 2003 4:24 PM
>   To: CF-Talk
>   Subject: RE: Another simple question...
>
>
>   If the ID is 114, chances are good that 115 is going to be
> valid, and
>   possible do something you shouldn't be doing (though that should be
> secured
>   through other means).  However if the URL is a UUID, md5 hash, or
> whatever,
>   the odds of changing it to a valid number is much smaller,
> as there will
> be
>   gaps in the series.  It doesn't make the app any simpler,
> but it does
>   accomplish something.
>
>   barneyb
>
>   > -----Original Message-----
>   > From: Raymond Camden [mailto:[EMAIL PROTECTED]
>   > Sent: Tuesday, December 09, 2003 1:08 PM
>   > To: CF-Talk
>   > Subject: RE: Another simple question...
>   >
>   > But even if you encrypt it, someone can still change it.
> If your logic
>   > correctly handles missing and bad ID values, what is the
>   > point of encrypting
>   > it?
>   >
>   >
>   >
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to