Create a cryptographically strong key consisting of printable characters for the passed algorithm.
| C# | Copy Code |
|---|---|
Encryption encryption = new Encryption(); //Trial Mode //Encryption encryption = new Encryption("place user name here", "place license key here"); //License Mode string key = encryption.GenerateKey(EncryptionProvider.Rijndael); Console.WriteLine("Key"); Console.WriteLine(key); | |
| VB.NET | Copy Code |
|---|---|
Dim encryption As New Encryption() 'Trial Mode 'Encryption encryption = new Encryption("place user name here", "place license key here"); //License Mode Dim key As String = encryption.GenerateKey(EncryptionProvider.Rijndael) Console.WriteLine("Key") Console.WriteLine(key) | |
You can also generate a PIN based on a name, email, or whatever:
| C# | Copy Code |
|---|---|
Encryption encryption = new Encryption(); //Trial Mode //Encryption encryption = new Encryption("place user name here", "place license key here"); //License Mode string results = encryption.GenerateSixDigitPin("John Smith"); Console.WriteLine(results); | |
| VB.NET | Copy Code |
|---|---|
Dim encryption As New Encryption() 'Trial Mode 'Dim encryption As New Encryption("place user name here", "place license key here") 'License Mode Dim results As String = encryption.GenerateSixDigitPin("John Smith") Console.WriteLine(results) | |