I am creating a license software key and currently I get a byte array after encryption process. How do I convert this byte array (may be of size 2000) to a product key that looks like xxxxx - xxxxx - xxxxx - xxxxx - xxxxx where x can be a value that ranges from upper case A-Z and 0-9?
I am trying this out to generate a license key in c# console app and to validate the generated license.
var bytes = memoryStream.ToArray();
//memoryStream is a cryptostream and the size of the byte array can be around 2000
I expect the byte array to be converted into a nicely formatted key that looks like the format I mentioned above. I have been stuck with this for past 2 weeks. Any help is much appreciated.