Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 Registration Key in register.asp(actkey)

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
luca.lamberti Posted - 30 October 2009 : 08:35:59
Hi guys,
I had problems whit registration key (actkey) that sometime is the same for many users (this happen 2-3 times at year).
Perhaps the key that is in my setup is only 16 char then can happen that 2 users have the same key.
I solved the problem not making the key longer only but adding a timecode before the key (in this way is impossible to have 2 identical key)
In the file inc_func_posting.asp add the line marked(line 69):
...........
strKey = ""
for j = 0 to 15
strKey = strKey & keyArray(key(j))
next
'timecode
strKey=round(CDbl(Now())*10000)&strKey
'end timecode
GetKey = strKey
if action = "sendemail" then
..........
in that way the code is a sum of a number that change every 10sec plus the actkey calculated as before.

I don't know if the new version of the forum have an algoritm more efficient, I hope that can be helpfull for someone.

Luca
3   L A T E S T    R E P L I E S    (Newest First)
luca.lamberti Posted - 01 November 2009 : 12:30:20
Yes..I saw that is possible to use till 32 chars, and is quite difficult but still is possible to have the same key..for that reason I used this algorithm. Also whit this solution you can make shorter the key ( 5-6 chars plus the timecode(10 chars)=16 chars).
I think whit this solution you can have less char and real less probability to have the same key.
Carefree Posted - 30 October 2009 : 20:43:17
You could use a simple date/time extraction like this:
	strKey = DatetoStr(strForumTimeAdjust) + strKey


That'll get you a leading string of the year/month/day/HH/MM/SS (followed by the initial key) - totaling 46 characters. Then, the odds against a duplicate registration key issued at the exact same second would be astronomical.
HuwR Posted - 30 October 2009 : 11:23:02
the current version of the forum uses a 32 digit key so is less likely to get a duplicate (but it is still possible).

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000 Version 3.4.07