LoadLibrary(*mem)

Just starting out? Need help? Post your questions and find answers here.
localmotion34
Enthusiast
Enthusiast
Posts: 665
Joined: Fri Sep 12, 2003 10:40 pm
Location: Tallahassee, Florida

Post by localmotion34 »

I have used this Command for a new registration scheme. I compiled a DLL with certain functions that will only be available in the full version of my app, and then encrypted it with RC4 using a 16 character password.

I included the DLL as a binary in the EXE. When the app starts up, it looks for a registration key, and then parses it. Each reg key of mine is 5-600 characters long, and contains the valid password somewhere. After decrypting the DLL, I use LoadLibraryM to access its functions.

If there is no reg key with password, or someone has an incorrect serial, LoadLibrayM fails, and none of the full functions are available. There is no way really to decrypt the DLL without a VALID Key. Sort of like Armadillo secure sections.

This works on XP, Vista, and WinSeven 32 bit so far.

Code: Select all

!.WHILE status != dwPassedOut
! Invoke AllocateDrink, dwBeerAmount
!MOV Mug, Beer
!Invoke Drink, Mug, dwBeerAmount
!.endw
cas
Enthusiast
Enthusiast
Posts: 597
Joined: Mon Nov 03, 2008 9:56 pm

Post by cas »

That is exactly how i am using it...
But it is not stable when using it as c library, it fails sometimes: http://purebasic.fr/english/viewtopic.php?t=37955
It would be better to have it natively in PB code.
cas
Enthusiast
Enthusiast
Posts: 597
Joined: Mon Nov 03, 2008 9:56 pm

Post by cas »

I bought Molebox Pro for $99 today as no one was currently interested in converting this.
Post Reply