Validating a product key considering the local machine as a server
===

How can i use my own computer as a server for the validation of the product keys , so that if i enter a product key instead of validating from a custom dll it should validate from a file containing all the product keys or if this is not possible can i do something like encryption of the product keys in the custom .dll.

Please help!!!