Click here to Skip to main content
15,923,789 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCommand Line parameters Pin
(Steven Hicks)n+114-Jan-03 4:12
(Steven Hicks)n+114-Jan-03 4:12 
GeneralRe: Command Line parameters Pin
Ben Burnett14-Jan-03 12:12
Ben Burnett14-Jan-03 12:12 
GeneralProblem with OnToolbarDropDown Pin
tabor2514-Jan-03 4:07
tabor2514-Jan-03 4:07 
Generalshareware / registration techniques.... Pin
joshfl14-Jan-03 4:06
joshfl14-Jan-03 4:06 
GeneralRe: shareware / registration techniques.... Pin
Maximilien14-Jan-03 4:33
Maximilien14-Jan-03 4:33 
GeneralRe: shareware / registration techniques.... Pin
mynab14-Jan-03 5:20
mynab14-Jan-03 5:20 
GeneralRe: shareware / registration techniques.... Pin
mynab14-Jan-03 5:23
mynab14-Jan-03 5:23 
GeneralRe: shareware / registration techniques.... Pin
Chris Losinger14-Jan-03 10:26
professionalChris Losinger14-Jan-03 10:26 
first, everything is breakable.

second, the fewer restrictions you place on users, the more registrations you get - really. if you make it a pain in the ass to use your app on a trial basis, people won't get to really use and grow dependent on your app (the ultimate goal!).

a simple time limit (14 or 30 days) is easy to implement, and easy to beat, but it does get a lot of registrations simply because people get tired of having to reset their clocks or track down your registry keys.

a two part key is pretty simple to do, too:

get some user info, get some user options. combine these into a string of bytes (hash the username, add the user option bytes to the end of the buffer). encrypt the whole thing. convert it to a string of hex chars, send this to the user.

when the user enters his name to register, hash it. decrypt the license, compare the hash to the hashed name in the key. if they match, get the user option bytes and things are all set.

to do this, you need

a) a hash function (any cipher can do this, block or stream). this goes in your app and the key gen. even CRC or checksum would work here.
b) a cipher to encrypt/decrypt the key. you'll need this in your app and the key gen. (public key is best)
c) a function to combine and encrypt the data in the key gen.
d) a function to decrypt and split the key data in your app.

-c



I'm not the droid you're looking for.

GeneralFTP exploration Pin
naradaji14-Jan-03 1:35
naradaji14-Jan-03 1:35 
GeneralRe: FTP exploration Pin
carrie14-Jan-03 1:49
carrie14-Jan-03 1:49 
GeneralRe: FTP exploration Pin
naradaji14-Jan-03 4:16
naradaji14-Jan-03 4:16 
GeneralRe: FTP exploration Pin
Anonymous14-Jan-03 4:45
Anonymous14-Jan-03 4:45 
GeneralRe: FTP exploration Pin
naradaji14-Jan-03 6:18
naradaji14-Jan-03 6:18 
GeneralRe: FTP exploration Pin
Gisle Vanem14-Jan-03 4:47
Gisle Vanem14-Jan-03 4:47 
GeneralSetWindowRgn problems Pin
Ceri13-Jan-03 23:35
Ceri13-Jan-03 23:35 
GeneralRe: SetWindowRgn problems Pin
jhwurmbach13-Jan-03 23:54
jhwurmbach13-Jan-03 23:54 
GeneralRe: SetWindowRgn problems Pin
Ceri14-Jan-03 0:06
Ceri14-Jan-03 0:06 
GeneralRe: SetWindowRgn problems Pin
jhwurmbach14-Jan-03 0:08
jhwurmbach14-Jan-03 0:08 
GeneralRe: SetWindowRgn problems Pin
Hans Ruck14-Jan-03 1:17
Hans Ruck14-Jan-03 1:17 
GeneralRe: SetWindowRgn problems Pin
Joaquín M López Muñoz14-Jan-03 0:02
Joaquín M López Muñoz14-Jan-03 0:02 
General[OT] Determine the compiler-version Pin
tabor2513-Jan-03 23:09
tabor2513-Jan-03 23:09 
GeneralRe: [OT] Determine the compiler-version Pin
Oliver Anhuth13-Jan-03 23:20
Oliver Anhuth13-Jan-03 23:20 
GeneralRe: [OT] Determine the compiler-version Pin
tabor2513-Jan-03 23:53
tabor2513-Jan-03 23:53 
GeneralFirst-chance exception: Mem violation Pin
boon kian13-Jan-03 22:56
boon kian13-Jan-03 22:56 
GeneralRe: First-chance exception: Mem violation Pin
Hans Ruck13-Jan-03 23:11
Hans Ruck13-Jan-03 23:11 

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.