I thought about this a few years ago. In the end, I decided not to license it; I gave it away for free, but I think my best idea is:
Send them a license file containing the key. Name the file with its full name and email address or something equally personal and make sure that renaming it will invalidate the key. It should be easy to achieve. There are many methods that you could use to not require storing a key in your application.
Like any system, this is not unscrupulous, but, as I explained many years ago, the security is to have honest, honest people.
source share