Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>dfkey2serial()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfKey2Serial()
Allow to create a serial number
------------------------------------------------------------------------------
Syntax:

     dfKey2Serial( <cKey>, <nVer>, [<nSeed>] ) --> cSerial

Parameters:

     <cKey>     Key to create
     <nVer>     Check type
     +---------------------------------------------------+
     | Tipo                | Significato                 |
     |---------------------+-----------------------------|
     | SERIAL_NOCONVERSION | No conversion               |
     | SERIAL_CRIPTED1     | 1st algoritm                |
     | SERIAL_CRIPTED2     | 2nd algoritm                |
     +---------------------------------------------------+
     <nSeed>    Cript value. DEFAULT 85

Returns:

     <cSerial>   A valid serial number

Description:

     Allow to create a valid serial number to create a simply protection to
     your programs

Example:

     #include "dfKeySer.ch"
     
     LOCAL cKey
     ? cKey := dfKey2Serial("Serial", SERIAL_NOCONVERSION)
     ? dfSerial2Key( cKey, SERIAL_NOCONVERSION )
     
     ? cKey := dfKey2Serial("Serial", SERIAL_CRIPTED1    )
     ? dfSerial2Key( cKey, SERIAL_CRIPTED1     )
     
     ? cKey := dfKey2Serial("Serial", SERIAL_CRIPTED2    )
     ? dfSerial2Key( cKey, SERIAL_CRIPTED2     )

See also:

     dfSerial2Key()

See Also: dfSerial2Key()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson