PureVALID library

Overview

PureValid is a library with one function : PureValid_CheckFile()

It is intended to check an EXE integrity at runtime, by calculating a
fingerprint and comparing it to a validation info located at the end
of the EXE.

This validation info is generated by PureValid.exe or my tool PureUPX.

Functions

PureValid_CheckFile(EncryptionKey.s)

Returned values :

1 if EXE is valid ;
0 if EXE is corrupt (program stops) .

How to use it :

Place the library PureValid in the %PureBasic%\PureLibraries\UserLibraries
directory, and the tool PureValid.exe in the directory where you have your
compiled applications.

1. In your application YourApp.pb, only add one line :

   PureValid_CheckFile("YourEncryptionKey")
    or
   Valid = PureValid_CheckFile("YourEncryptionKey")
   ; Valid =	1 if EXE is valid,
   ;	0 if EXE is corrupt (program stops)

2. Compile your application as usual

3. Validate your application with PureValid.exe :

   PureValid YourApp.exe "YourEncryptionKey"

4. It's done. Now if something / someone changes your application, it does not
   run anymore. Try to change it's name or patch it, and see the result.

NB :	you can also use PureUPX to validate your application after compressing
	(+/- scrambling). If the PureValid library is installed, you will see an
	extra PureValid section when you start PureUPX.