Click here to Skip to main content
16,015,351 members
Home / Discussions / Algorithms
   

Algorithms

 
QuestionBest method to calculate curves through specified points Pin
BRShroyer24-Oct-06 3:06
BRShroyer24-Oct-06 3:06 
AnswerRe: Best method to calculate curves through specified points Pin
ricecake24-Oct-06 3:18
ricecake24-Oct-06 3:18 
GeneralRe: Best method to calculate curves through specified points Pin
BRShroyer24-Oct-06 3:44
BRShroyer24-Oct-06 3:44 
AnswerRe: Best method to calculate curves through specified points Pin
Ed.Poore24-Oct-06 3:54
Ed.Poore24-Oct-06 3:54 
AnswerRe: Best method to calculate curves through specified points Pin
El Corazon24-Oct-06 8:33
El Corazon24-Oct-06 8:33 
GeneralWhy Shockwave Is Cool Pin
Bassam Abdul-Baki23-Oct-06 13:37
professionalBassam Abdul-Baki23-Oct-06 13:37 
QuestionCopying a module [modified] Pin
Cyclone0220-Oct-06 5:46
Cyclone0220-Oct-06 5:46 
AnswerRe: Copying a module Pin
El Corazon21-Oct-06 9:52
El Corazon21-Oct-06 9:52 
What I used was a string buffer array. Because an original C buffer is continuous memory blocks, it makes it easy to partition it off. Or you can use a structure which does the same thing.

struct {<br />
   char findstring[64];<br />
   char licensename[64];<br />
   time_t licensedate;<br />
   time_t licenselen;<br />
   unsigned long crc32a;<br />
   unsigned long licensedfeatures;<br />
   char licensekey[64];<br />
} lincenseinfo;



this does not take into account someone adjusting the clock unless you write the last date of operation somewhere. That is where it takes some long thinking and hard writing to secure only in software. Eventually you realize it is impossible to secure only in software and deal.

But the process is easy. from an external EXE you can scan the binary EXE of your code looking for the findstring value (any string you want to use, even random characters you pregenerated, but you have to know what to search for). By searching for and finding that start of buffer, you know where the rest of the values are. Set in your license times, CRC validations (optional) and the name of your licensee and their key. The key is based on the same information, name, product, date, length of license and any other related information. You then generated a validated buffer and write it into the file replacing the entire buffer within the already compiled EXE.

Inside your code you verify the information in the buffer matches. If it does not, you exit, or disable features, or turn on demo mode, etc. If the buffer all cross-verifies, then you proceed as a licensed product.



_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

AnswerRe: Copying a module Pin
Eric Dahlvang26-Oct-06 8:59
Eric Dahlvang26-Oct-06 8:59 
QuestionApriori algorithm of association rules Pin
cannielynn19-Oct-06 16:26
cannielynn19-Oct-06 16:26 
Questionmodulus. need help (visual c++) Pin
nonadoes18-Oct-06 20:50
nonadoes18-Oct-06 20:50 
AnswerRe: modulus. need help (visual c++) Pin
El Corazon19-Oct-06 4:11
El Corazon19-Oct-06 4:11 
AnswerRe: modulus. need help (visual c++) Pin
David Crow26-Oct-06 9:08
David Crow26-Oct-06 9:08 
AnswerRe: modulus. need help (visual c++) Pin
PICguy4-Jan-07 16:41
PICguy4-Jan-07 16:41 
QuestionHardware serial encryptor/decryptor Pin
Cyclone0217-Oct-06 19:03
Cyclone0217-Oct-06 19:03 
AnswerRe: Hardware serial encryptor/decryptor Pin
tydok18-Oct-06 3:03
tydok18-Oct-06 3:03 
GeneralRe: Hardware serial encryptor/decryptor Pin
Cyclone0218-Oct-06 3:27
Cyclone0218-Oct-06 3:27 
AnswerRe: Hardware serial encryptor/decryptor Pin
El Corazon18-Oct-06 6:00
El Corazon18-Oct-06 6:00 
GeneralRe: Hardware serial encryptor/decryptor Pin
Cyclone0219-Oct-06 4:02
Cyclone0219-Oct-06 4:02 
GeneralRe: Hardware serial encryptor/decryptor Pin
El Corazon19-Oct-06 4:07
El Corazon19-Oct-06 4:07 
Questionhow to make a faster algorithm Pin
roberto_santinni17-Oct-06 11:12
roberto_santinni17-Oct-06 11:12 
AnswerRe: how to make a faster algorithm Pin
ejuanpp17-Oct-06 12:27
ejuanpp17-Oct-06 12:27 
JokeRe: how to make a faster algorithm Pin
toxcct17-Oct-06 12:46
toxcct17-Oct-06 12:46 
AnswerRe: how to make a faster algorithm Pin
Haoman1718-Oct-06 1:17
Haoman1718-Oct-06 1:17 
GeneralRe: how to make a faster algorithm Pin
peterchen21-Oct-06 12:27
peterchen21-Oct-06 12:27 

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.