Does anyone have an algorithm for generating unique Serial Numbers or Key Codes for software sales, and a method of applying them?