Uli's Web Site
[ Zathras.de - Uli's Web Site ]
Other Sites: Stories
Pix
Abi 2000
Stargate: Resurgence
Lost? Site Map!
 
 
     home | articles | moose | programming | articles >> blog

 Blog
 
 Blog Topics
 
 Archive
 

15 Most Recent [RSS]

 Review: Sherlock
2010-07-28 @073
 
 Playing with Objective C on Debian
2010-05-08 @456
 
 Fruit vs. Obst
2010-05-08 @439
 
 Mixed-language ambiguity
2010-04-15 @994
 
 Uli's 12:07 AM Law
2010-04-12 @881
 
 Uli's 1:24 AM Law
2010-04-12 @874
 
 Uli's 6:28 AM Law
2010-04-12 @869
 
 Uli's 3:57 PM Law
2010-04-12 @867
 
 Uli's 4:41 PM Law
2010-04-12 @864
 
 Uli's 7:25 AM Law
2010-04-12 @862
 
 Uli's 9:36 PM Law
2010-04-12 @861
 
 Typesafe typecasts
2010-04-12 @471
 
 Porting to the Macintosh
2010-04-09 @592
 
 Uli's source code is on Github!
2010-03-05 @986
 
 Downtime on Friday
2010-03-04 @025
 

More...

Nice article on serial numbers

Just stumbled across a neat (and, admittedly, old) article that explains how to use the OpenSSL library from code as a way of implementing licensing for an application you write.

OpenSSL keys aren't quite suitable for use as serial numbers (because a 1024-bit key is 128 characters long, and users wouldn't want to type that), but if you have a license URL scheme or a license file implementation, they'll do just fine. You just use your private key to encrypt some data about the license (i.e. user name, number of seats, expiration date), and the app can extract that using the public key. And factoring a private 1024-bit key currently still takes too long to be worthwhile.

This doesn't make your app un-crackable, but will keep key generators off the web. People will need binary patches to remove the licensing code or replace the public key. And whoever is stupid enough to use a binary patch from some shady web site is punished enough already, because they prolly also have lots of viruses and exploits on their machine anyway...

Reader Comments: (RSS Feed)
Kishor Patel writes:
Great pointer. Thanks very much.
Comment on this article:
Name:
E-Mail: (not shown, hashed for Gravatar)
Web Site URL: (optional)
Comment: (plain text only)
Please Enter the following word:
Or E-Mail Uli privately.

 
Created: 2008-08-15 @000 Last change: 2010-07-29 @712 | Home | Admin | Edit
© Copyright 2003-2010 by M. Uli Kusterer, all rights reserved.