Code generator test: %Y%m%d%H%M yyyyMMddHHmm (GMT) *** Calculate the rollcode required by the honest-to-goodness voodoo plugin *** koo koo kormorants kreate krap %y%m%d%H%M %d%H%M.

Six variables settable in your URL:

expiration is
pid is
start and end are [NULL] and [NULL]
url is
passphrase is something about unwell dogs and warm bread
-
Hash Calculation: MD5(pid + passphrase + expiration + start + end)
Token is thus calculated to be

Test link is Klik Hier
Outdated Greg link is http://mas.test.real.com/mas/start?pid=abcchan&url=anq2k_holiday.rm&ot=200402261956-e63ca3e46546a42e7a6245241a119512 Date: Thu, 19 Feb 2004 10:37:33 -0800 From: Jeff White To: Gregory Vandenberg Subject: inbound credential User-Agent: Mutt/1.4.1i The parameter name is "ot" (obscure token). "dnc" will also work equally well. Either can be assigned token_type of 1 (new format) or 3 (legacy dnc format). Here's the method for computing it. Let me know if it should be modified. Expiration format is yyyyMMddHHmm (GMT). String hash = HashUtil.md5Hex(pid + passphrase + expiration + start + end); return expiration + "-" + hash; Here's my test code for testing "ot" and "dnc". public void testOt () { String expiration = "201001010000"; String pid = "mypid"; String start = ""; String end = ""; String passphrase = "foofoo"; String hash = HashUtil.md5Hex(pid + passphrase + expiration + start + end); String token = expiration + "-" + hash; assertTrue(TokenGenerator.checkInboundToken(token, 1, pid, passphrase, start, end)); } Confusing? Yes. Configurable? You bet.