How can I create a Secure Key Generator?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

I am trying to use a public key encryption method to create a copy
protection system. Input data will be a password and Computer Code (a
string based on user's computer hardwares, for example, hard disk) and
Output will be an Activation Code.
User will use Activation Code and it will be validated at runtime.
I know the theory but I don't know how to implement it.
Please guide me.

Site Timeline