:
This message was edited by MacMurks1482 at 2002-11-10 0:47:9
: Okay, here it is...
:
: Key /Value
:
: InstallDate 2452587
: InstallDateKey 928109
: LastRunDate 2452589
:
: now the Values:
:
: InstallDate (here:2002-11-08)
: LastRunDate (here:2002-11-10)
:
: I suppose both to be "linear" around some YearMonthDay formula, havent
: tried much other dates to trace the formula
:
: InstallDateKey (here:2002-11-08)
: Installation date ENCRYPTED
:
: So here the way the app checks the date:
:
: "Today" is transformed into a value of this stuff
: and compared to LastRunDate
: If mismatch:ShareWare Dialog, calc&write NEW LastRunDate
:
: LastRunDate is compared to InstallDate
: if less:Error! ("Very first run" before installation!!

)
:
: InstallDate is "encrypted" and compared to InstallDateKey
: if mismatch:Error!
:
:
: This seems to be all!
:
: So im not looking for an algo to encrypt some DATE,
: but to encrypt an ENCRYPTED DATE!!!

:
: Hoping someone can help me
: Mac
:
Here
InstallDate is "encrypted" and compared to InstallDateKey
if mismatch:Error!
what you probably mean is, both install date and last run date are
considered for encryption, something like:
if (encrypt(installdate,lastrundate) > dateinstallkey)
return END_OF_TRIAL;
where encrypt() could be something like
f(installdate + (lastrundate - installdate)).
It is this f which I was talking about, because again you can define
any number of transformaions for f,but fewer then I said because ,the
> sign or < sign is probably involved in the comparison rather than
the == sign.