RegCode is an open source and free REALbasic class which will help developers generate and validate registration codes/keys/serial numbers for their applications.
RegCode includes an application that can generate codes using a variety of settings and a corresponding class to include in your REALbasic projects to validate the code.