[c#] How to generate and validate a software license key?