I am working on magento custom module development and sales. usually i encrypt the extension code and install it on my client's websites so that they cannot re-use the extension in other domains. 

Now i am looking for some other method through which i can stop others using my code other than encryption.

I heard about setting up license key to validate user's domain.Can anyone provide me more details or ideas about this.

Thanks in advance!