Embedded Protection - Dynamic code en/decryption marks


Dynamic code en/decryption marks

 

Introduction:

To create application that could use runtime encryption. SDProtector offers runtime code encryption by using LOCK_BLOCK_START and LOCK_BLOCK_END markers. Code between encryption marks is encrypted during process of file protection and when protected file is executed, code is being decrypted. When decrypted code is finally executed, it's encrypted again (runtime protection against dumping).

Remarks
Nested marks are not supported, and they should always be used in pairs. Before you use these marks, we strongly recommend you to read marks usage tips first.
Example
for C++

#include "SDProtector.h"
//...
void example() { //...
LOCK_BLOCK_START //... MessageBox(NULL,"Dynamic code en/decryption","Info",MB_OK); LOCK_BLOCK_END

//...

}
for Delphi

        
procedure example; begin //... {$I LOCK_BLOCK_START.INC} //... MessageBox(0,'Dynamic code en/decryption','Info',MB_OK); {$I LOCK_BLOCK_END.INC} //... end;
Sample application is located in \Examples\Delphi\Embedded Protection\ and \Examples\VC\Embedded Protection\ directory.
 
CopyRight(C) 2003 SDProtector.com All Rights Reserved