I have an exe file (my.exe) that needs to be protected from unauthorized users. I want to embed this file within a wrapper file so the user runs the latter instead of the actual executable. When this happens:
- the user is prompted for username/pass (non-GUI)
- the combination is compared to the entries within an external sql db
- if match, then run my.exe, else exit
I think what gives me difficulty is implementing the sql commands within C++. Is CQL++ useful? I know I may need to install a new lib but which lib is suitable/easy to use? I also don't have a clue on how to embed the executable within the wrapper... I have done plenty of research but I am still in confusion.
Any help is greatly appreciated.