"toufik toufik" <toufiki@sympatico.ca> wrote in message
news:yLyad.11578$hk6.291664@news20.bellglobal.com. ..
>
> "Justin Koivisto" <spam@koivi.com> wrote in message
> news:txyad.270$Iq6.11820@news7.onvoy.net...
> > toufik toufik wrote:
> >
> > > Hi,
> > > I'm looking for a php code that I can use to generate lience key that
is
> > > activated between 2 dates.
> > >
> > > Any hint please.
> >
> > More information needed... You'll need a database with 3 fields, key,
> > start, end. Beyond that, we'd need to know what you are trying to
> > accomplish.
> >
> > --
> > Justin Koivisto - spam@koivi.com
> > http://www.koivi.com
>
> Thanks Justin,
> What I need execaly, is how can secure my key, so that my customer
couldn't
> create it himself.
> All this because the customer can see the source code.
>
> Toufik. tissad@gvs.ca
> http://www.gvs.ca
>
For that, you need a asymmetric cipher like RSA. It's possible to implement
that in PHP, although most servers don't have the GMP extension. Besides, as
Gordon said, if your customers can see the source code, then they can
comment out any restriction you put it.