Robert, Atrix,
The USR is a md5 hash, yes… if you
are using a single server, it is the users IP and a timestamp, however hashes
are longer than the 24 chars that you see, 48 I think, in any case, Witango cuts
off the end, so it is possible that two USRs created
within a short time of each other, from the same user will match, or be
extremely similar. If you are using multiple servers in a pool, the IP address
and PORT value of the server on which the user is on is appended to the front
of the USR and it is expanded to 36 characters. In all cases it is a Hex code
and can be interpreted in pairs of characters from 0 to F. When I’ve used
the USR as an identifier for myself, I’ve saved the entire USR in a char(36) column. You can always roll your own identifier
with the @CIPHER tag.
Robert Shubert
Tronics
-----Original Message-----
From: Robert Garcia
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 16, 2003
11:50 PM
To: [EMAIL PROTECTED]
Subject: Re: Witango-Talk: User
Reference
I believe the user reference is a one way md5 hash,
based on the ip address of the user, and I think the time, and maybe something
else. It is a hexidecimal string.
Robert.
On Wednesday, July 16, 2003, at 06:34 PM, Ben Johansen wrote:
I don’t
think the userref is stored as hex Number, but of of course, when I look at my
sample, there is no letter over F,
/smaller>/color>
I think it is an Alphanumeric code and
is not in HEX code?
/smaller>/color>
If I am wrong sobeit ;-)
/smaller>/color>
/smaller>/color>
I will look in my archives, I know
this hex to dec issue has been asked and answered
/smaller>/color>
Ben Johansen - /smaller>/color>http://www.pcforge.com
/smaller>/color>Authorized
Witango Reseller /smaller>/color>http://www.pcforge.com/WitangoGoodies.htm
/smaller>/color>Authorized
MDaemon Mail Server Reseller
/smaller>/color>http://www.pcforge.com/AltN.htm/smaller>/color>
-----Original Message-----
From:Atrix
Wolfe[mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 16, 2003
4:19 PM
To: [EMAIL PROTECTED]
Subject: Re: Witango-Talk: User
Reference
/smaller>/fontfamily>
Hmm, so i guess maybe some parts are more likely to be unique than
other parts.
/smaller>
Thanks for the info Ben...
/smaller>
oh wait, do you know if theres a way in witango to convert from hex
to decimal and back? I only wanted to store the first 5 digits to save on
space but storing it as a number instead of text would save alot of space too i
bet.
/smaller>
----- Original Message -----
/smaller>
From:/smaller>Ben
Johansen/smaller>/color>
To:/smaller>[EMAIL PROTECTED]/smaller>/color>
Sent:/smaller>Wednesday,
July 16, 2003 4:04 PM
/smaller>
Subject:/smaller>RE:
Witango-Talk: User Reference
/smaller>
Userreference is assigned server side.
/smaller>/color>
I don’t know what all goes into
creating it, but I know time is a factor, and it is possible that the first few
chars are base on Hour and Min. and it possible to have that time combo come up
as a start to the userref multiple times during the day.
/smaller>/color>
Using the first portion of user ref
and not the whole will not necessarily be unique. You need to use the whole
userref to guarantee uniqueness.
/smaller>/color>
Either that or someone bookmarked a
page with it in and sent it to someone else as a link and that someone else
accessed that page prior to timeout
/smaller>/color>
Ben Johansen - /smaller>/color>http://www.pcforge.com
/smaller>/color>Authorized
Witango Reseller /smaller>/color>http://www.pcforge.com/WitangoGoodies.htm
/smaller>/color>Authorized
MDaemon Mail Server Reseller
/smaller>/color>http://www.pcforge.com/AltN.htm/smaller>/color>
-----Original Message-----
From: Atrix Wolfe
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 16, 2003
3:57 PM
To: [EMAIL PROTECTED]
Subject: Witango-Talk: User
Reference
/smaller>/fontfamily>
Hello everyone,
/smaller>
I posted this but it didnt apear so im reposting, sorry if it shows
up twice!
/smaller>
When users log in we put some information in the database about them,
including the first 5 digits of the user reference number so we can match it up
in the log with user reference numbers easier.
/smaller>
We had a user log in on 6/30 with first 5 user ref digits of 5353C,
then they logged in on 7/8 with DE1C4, and again on 7/9 with 5353C again (all
from same IP).
/smaller>
I was wondering if it was likely that he got the same first 5 digits
(or maybe all digits?) of a user reference number the same over a short
period of time or maybe its an indiciation of something wrong? I dont
know if user references are generated client side or server side so i thought
id ask and see if this was anything to worry about.
/smaller>
Thanks!
/smaller>
Atrix
/smaller>
________________________________________________________________________/smaller>/fontfamily>
TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf/smaller>/fontfamily>
________________________________________________________________________/smaller>/fontfamily>
TO UNSUBSCRIBE: Go to
http://www.witango.com/maillist.taf/smaller>/fontfamily>
--
Robert Garcia
President - BigHead Technology
CTO - eventpix.com
2781 N Carlmont Pl
Simi Valley, Ca 93065
ph: 805.522.8577 - cell: 805.501.1390
[EMAIL PROTECTED] - [EMAIL PROTECTED]
http://bighead.net/ - http://eventpix.com/ - http://theradmac.com/