Click here to Skip to main content
15,921,622 members
Home / Discussions / C#
   

C#

 
QuestionHow do i delete a file Pin
YiXiang_8916-May-09 22:46
YiXiang_8916-May-09 22:46 
AnswerRe: How do i delete a file Pin
Nuri Ismail16-May-09 23:28
Nuri Ismail16-May-09 23:28 
AnswerRe: How do i delete a file Pin
A.m.a.L17-May-09 1:01
A.m.a.L17-May-09 1:01 
Questionsend some keystrokes to another application Pin
benams16-May-09 21:42
benams16-May-09 21:42 
AnswerRe: send some keystrokes to another application Pin
Nuri Ismail16-May-09 22:07
Nuri Ismail16-May-09 22:07 
GeneralRe: send some keystrokes to another application Pin
benams17-May-09 0:11
benams17-May-09 0:11 
GeneralRe: send some keystrokes to another application Pin
A.m.a.L17-May-09 1:02
A.m.a.L17-May-09 1:02 
QuestionPreventing user from changing dates and breaching software license Pin
Sunnt16-May-09 18:51
Sunnt16-May-09 18:51 
Hi Guys

Here's the description of the licensing component I've created: -

1. I created a pair of asymmetric keys using RSA algorithm. I embeded the "public key" into the code and kept the "private key" securely with me.
2. Now, when a user tries to run the program, the program looks into registry for a valid license string. If not found, it does the following: -
a. It pulls out a string comprising of the MAC-ID and CPU-ID and hashes it using MD5 algorithms.
b. The above hash is sent back to me by the user.
c. I sign this hash using my private key, and add the start-date and end-date for the license period, and create a license string for the user. This I send back to the user and he enters this into the program.
d. The program, now verifies the signature of this license using the public key. If successful, it matches the MAC-ID and CPU-ID to make sure that the license is intended for this very computer hardware. it then saves this license key into registry to perform the license validation everytime the program is run.

It all works fine, except the following - Let's say I've provided the license for the period between 01 Jan 2009 to 31 Dec 2009. The license is valid as long as the local date on computer of the user is within this range. This means the user can change the date and keep running the program even if the license period expires. I know this is a standard problem, and I also hope this must have been solved. All I'm looking forward is to fix this.

Pls suggest.

Sunny
AnswerRe: Preventing user from changing dates and breaching software license Pin
mav.northwind16-May-09 19:37
mav.northwind16-May-09 19:37 
GeneralRe: Preventing user from changing dates and breaching software license Pin
OriginalGriff17-May-09 8:56
mveOriginalGriff17-May-09 8:56 
AnswerRe: Preventing user from changing dates and breaching software license Pin
Mycroft Holmes16-May-09 20:47
professionalMycroft Holmes16-May-09 20:47 
GeneralRe: Preventing user from changing dates and breaching software license Pin
PIEBALDconsult17-May-09 3:54
mvePIEBALDconsult17-May-09 3:54 
Questionhow to create even_click for dynamic button ? Pin
xingselex16-May-09 17:25
xingselex16-May-09 17:25 
AnswerRe: how to create even_click for dynamic button ? Pin
dybs16-May-09 18:27
dybs16-May-09 18:27 
AnswerRe: how to create even_click for dynamic button ? Pin
DaveyM6916-May-09 22:25
professionalDaveyM6916-May-09 22:25 
QuestionAn error witrh SQL Server and C# Pin
Mohammad Dayyan16-May-09 16:45
Mohammad Dayyan16-May-09 16:45 
AnswerRe: An error witrh SQL Server and C# Pin
Guffa16-May-09 16:54
Guffa16-May-09 16:54 
GeneralRe: An error witrh SQL Server and C# Pin
Mohammad Dayyan16-May-09 23:34
Mohammad Dayyan16-May-09 23:34 
GeneralRe: An error witrh SQL Server and C# Pin
Guffa22-May-09 13:20
Guffa22-May-09 13:20 
QuestionSentence Scanning Pin
beibay16-May-09 11:06
beibay16-May-09 11:06 
AnswerRe: Sentence Scanning Pin
Mycroft Holmes16-May-09 20:52
professionalMycroft Holmes16-May-09 20:52 
GeneralRe: Sentence Scanning Pin
beibay16-May-09 21:11
beibay16-May-09 21:11 
QuestionPlay Video stream coming from a network stream Pin
dihaz16-May-09 10:19
dihaz16-May-09 10:19 
QuestionDataset Update Pin
Stefano Negro16-May-09 10:03
Stefano Negro16-May-09 10:03 
QuestionMulti-threading using AutoResetEvent [modified] Pin
steve_rm16-May-09 9:28
steve_rm16-May-09 9:28 

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.