xoops forums

wishcraft

Module Developer
Posted on: 2009/10/23 21:05
wishcraft
wishcraft (Show more)
Module Developer
Posts: 3711
Since: 2007/5/18
#1

License Key Validation - Unique Identifier

With the advent of PHP5 it has brought on the ability to CURL, SOAP and do heaps of things to do with intermixing databases on multiple site, say you wanted to uniquely identify your XOOPS site for comparison matrix's the best way to generate a hash to do with this is as follows:

$xoops_unique_hash md5(XOOPS_LICENSE_KEY);

// or

$xoops_unique_hash sha1(XOOPS_LICENSE_KEY);

// or

$xoops_unique_hash crc32(XOOPS_LICENSE_KEY);


This will provide for example with a key of:

cugucu-qkomsm-cc0maq-iagasm-ugomew

the follow hashes/checksums would be provided

SHA1: 7406f5515d0a0d2a0ef816db4e2a9ce74e356b4d
MD5: 85db0bef1c73423b5b21372efdbca9ba
CRC32: 2102698c

Or any other type of hashing to uniquely identify your system. This will also be used with a new systems that are developed using CURL, SOAP or any other method you could provide the unique to anywhere in a $_GET or via SOAP and XML or any form of communication.

hervet

Friend of XOOPS
Posted on: 2009/10/24 6:56
hervet
hervet (Show more)
Friend of XOOPS
Posts: 2267
Since: 2003/11/4
#2

Re: License Key Validation - Unique Identifier

Quote:

wishcraft wrote:
With the advent of PHP5

Five years ago ...

wishcraft

Module Developer
Posted on: 2009/10/24 21:25
wishcraft
wishcraft (Show more)
Module Developer
Posts: 3711
Since: 2007/5/18
#3

Re: License Key Validation - Unique Identifier

Quote:

hervet wrote:
Quote:

wishcraft wrote:
With the advent of PHP5

Five years ago ...


Available here now!!