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.
LoadLibrary(*mem)
-
localmotion34
- Enthusiast

- Posts: 665
- Joined: Fri Sep 12, 2003 10:40 pm
- Location: Tallahassee, Florida
Code: Select all
!.WHILE status != dwPassedOut
! Invoke AllocateDrink, dwBeerAmount
!MOV Mug, Beer
!Invoke Drink, Mug, dwBeerAmount
!.endw
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.
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.