Click here to Skip to main content
15,887,485 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionAbout code protection. Pin
Hurricane300014-Sep-09 9:59
Hurricane300014-Sep-09 9:59 
AnswerRe: About code protection. Pin
εїзεїзεїз14-Sep-09 10:56
εїзεїзεїз14-Sep-09 10:56 
GeneralRe: About code protection. [modified] Pin
Hurricane300014-Sep-09 11:28
Hurricane300014-Sep-09 11:28 
GeneralRe: About code protection. Pin
Christian Graus14-Sep-09 13:40
protectorChristian Graus14-Sep-09 13:40 
GeneralRe: About code protection. Pin
Hurricane300014-Sep-09 21:12
Hurricane300014-Sep-09 21:12 
AnswerRe: About code protection. Pin
CyberSamuraiii16-Sep-09 2:31
CyberSamuraiii16-Sep-09 2:31 
GeneralRe: About code protection. Pin
Hurricane300016-Sep-09 8:46
Hurricane300016-Sep-09 8:46 
GeneralRe: About code protection. Pin
CyberSamuraiii16-Sep-09 10:19
CyberSamuraiii16-Sep-09 10:19 
Er okay Ignazio,

First thing, the example you gave is a poor attempt at security. Why? nothing stops someone from simply using the same full Name + a registration no A.K.A key on another device! because your application is designed to accept any valid key, so if my friend bought a key i could just borrow it and use his name and I could just take the same app and replicate it on several devices, or worse if i crack the algo on it i could make my own keys to sell because the keys and en/decryption technique are stored locally on the device, not a good idea. However if this is sufficient "protection" for your app then hey who am i to talk... as for how it works? there way too many books that could best educate you on that Smile | :)

If all else fails u can also try

1. a query for a unique ID of the mobile device through lineGetGeneralInfo or such similar API i.e.TAPI functions. check out msdn for more info here
http://msdn.microsoft.com/en-us/library/aa458219.aspx[^] or make another small app just to extract that serial.

2. once your application extracts the serial/IMEI number of the device and displays it to the user, they can then enter it on say your website where they have a registered account. in other words they pay for the license and can then login onto your website where your server side encryption algorithm is running.

3. They can now enter the serial as displayed on the mobile device and receive an instant key unique to there device.

4. When the user fires up the application on their device, it will check the serial against the stored key before starting. This way you keep your key encryption technique away from prying curiosity of would be crackers. you will need to make changes to your application to incorporate security i.e. decrypting the key against the serial of the device. there are several readily available techniques to do this. in fact i think there's an entire .net class that can help you do this check out on msdn.

Anyway hope i helped a little,
All the best
GeneralRe: About code protection. Pin
Hurricane300016-Sep-09 10:52
Hurricane300016-Sep-09 10:52 
GeneralRe: About code protection. Pin
CyberSamuraiii16-Sep-09 20:34
CyberSamuraiii16-Sep-09 20:34 
QuestionEXCEL VBA Pin
veon cheng14-Sep-09 1:09
veon cheng14-Sep-09 1:09 
AnswerRe: EXCEL VBA Pin
Christian Graus14-Sep-09 1:15
protectorChristian Graus14-Sep-09 1:15 
GeneralRe: EXCEL VBA Pin
veon cheng14-Sep-09 1:29
veon cheng14-Sep-09 1:29 
GeneralRe: EXCEL VBA Pin
DaveAuld14-Sep-09 2:07
professionalDaveAuld14-Sep-09 2:07 
QuestionATL, COM in vc++ Pin
hrishiS13-Sep-09 23:06
hrishiS13-Sep-09 23:06 
AnswerRe: ATL, COM in vc++ Pin
Christian Graus14-Sep-09 0:52
protectorChristian Graus14-Sep-09 0:52 
QuestionHourGlass cursor Problem Pin
mdrizwan_113-Sep-09 20:52
mdrizwan_113-Sep-09 20:52 
AnswerRe: HourGlass cursor Problem Pin
Johan Hakkesteegt13-Sep-09 22:43
Johan Hakkesteegt13-Sep-09 22:43 
GeneralRe: HourGlass cursor Problem Pin
mdrizwan_113-Sep-09 23:18
mdrizwan_113-Sep-09 23:18 
GeneralRe: HourGlass cursor Problem Pin
Johan Hakkesteegt13-Sep-09 23:20
Johan Hakkesteegt13-Sep-09 23:20 
QuestionHelp Using BitBlt Pin
Kobi_Z13-Sep-09 20:38
Kobi_Z13-Sep-09 20:38 
AnswerRe: Help Using BitBlt Pin
Christian Graus13-Sep-09 20:59
protectorChristian Graus13-Sep-09 20:59 
GeneralRe: Help Using BitBlt Pin
Kobi_Z13-Sep-09 21:32
Kobi_Z13-Sep-09 21:32 
GeneralRe: Help Using BitBlt Pin
Christian Graus14-Sep-09 0:54
protectorChristian Graus14-Sep-09 0:54 
AnswerRe: Help Using BitBlt Pin
orbano14-Sep-09 22:01
orbano14-Sep-09 22:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.