I saw this post that mentions AquaticPrime. This is a cool little module that gives application developers a secure way to create and validate registration codes. It uses RSA encryption to generate the validate the keys.
Cocoa, Carbon and PHP implementations are available. I would assume that it would be pretty easy to port this to other platforms.
Technorati Tags: security