@@ -28,9 +28,9 @@ public class Main {
2828 String RSAPubKey = " <RSAKeyValue><Modulus>sGbvxwdlDbqFXOMlVUnAF5ew0t0WpPW7rFpI5jHQOFkht/326dvh7t74RYeMpjy357NljouhpTLA3a6idnn4j6c3jmPWBkjZndGsPL4Bqm+fwE48nKpGPjkj4q/yzT4tHXBTyvaBjA8bVoCTnu+LiC4XEaLZRThGzIn5KQXKCigg6tQRy0GXE13XYFVz/x1mjFbT9/7dS8p85n8BuwlY5JvuBIQkKhuCNFfrUxBWyu87CFnXWjIupCD2VO/GbxaCvzrRjLZjAngLCMtZbYBALksqGPgTUN7ZM24XbPWyLtKPaXF2i4XRR9u6eTj5BfnLbKAU5PIVfjIS+vNYYogteQ==</Modulus><Exponent>AQAB</Exponent></RSAKeyValue>" ;
2929 String auth = " WyIyNjA5IiwiaWE5b0VFT3Q2eDlNR2FvbHBHK2VOYUZ4bzNjT3h5UkNrMCtiYnhPRSJd" ;
3030
31- LicenseKey license = Key . Activate(auth, RSAPubKey , new ActivateModel (3349 , " ICVLD-VVSZR-ZTICT-YKGXL" , Helpers . GetMachineCode()));
31+ LicenseKey license = Key . Activate(auth, RSAPubKey , new ActivateModel (3349 , " ICVLD-VVSZR-ZTICT-YKGXL" , Helpers . GetMachineCode(2 )));
3232
33- if (license == null || ! Helpers . IsOnRightMachine(license)) {
33+ if (license == null || ! Helpers . IsOnRightMachine(license, 2 )) {
3434 System . out. println(" The license does not work." );
3535 } else {
3636 System . out. println(" The license is valid!" );
@@ -84,8 +84,8 @@ public static void main(String args[]) {
8484 String RSAPubKey = " <RSAKeyValue><Modulus>sGbvxwdlDbqFXOMlVUnAF5ew0t0WpPW7rFpI5jHQOFkht/326dvh7t74RYeMpjy357NljouhpTLA3a6idnn4j6c3jmPWBkjZndGsPL4Bqm+fwE48nKpGPjkj4q/yzT4tHXBTyvaBjA8bVoCTnu+LiC4XEaLZRThGzIn5KQXKCigg6tQRy0GXE13XYFVz/x1mjFbT9/7dS8p85n8BuwlY5JvuBIQkKhuCNFfrUxBWyu87CFnXWjIupCD2VO/GbxaCvzrRjLZjAngLCMtZbYBALksqGPgTUN7ZM24XbPWyLtKPaXF2i4XRR9u6eTj5BfnLbKAU5PIVfjIS+vNYYogteQ==</Modulus><Exponent>AQAB</Exponent></RSAKeyValue>" ;
8585 String auth = " WyIyNjA5IiwiaWE5b0VFT3Q2eDlNR2FvbHBHK2VOYUZ4bzNjT3h5UkNrMCtiYnhPRSJd" ;
8686
87- LicenseKey license = Key . Activate(auth, RSAPubKey , new ActivateModel (3349 , " MTMPW-VZERP-JZVNZ-SCPZM" , Helpers . GetMachineCode(), 300 , 1 ));
88- if (license == null || ! Helpers . IsOnRightMachine(license, true , true )) {
87+ LicenseKey license = Key . Activate(auth, RSAPubKey , new ActivateModel (3349 , " MTMPW-VZERP-JZVNZ-SCPZM" , Helpers . GetMachineCode(2 ), 300 , 1 ));
88+ if (license == null || ! Helpers . IsOnRightMachine(license, 2 , true , true )) {
8989 System . out. println(" The license does not work." );
9090 } else {
9191 System . out. println(" The license is valid!" );
@@ -104,7 +104,7 @@ import io.cryptolens.models.*;
104104public static void main(String args[]) {
105105 String auth = " " ;
106106
107- boolean result = Key . Deactivate(auth, new DeactivateModel (3349 , " MTMPW-VZERP-JZVNZ-SCPZM" , Helpers . GetMachineCode()));
107+ boolean result = Key . Deactivate(auth, new DeactivateModel (3349 , " MTMPW-VZERP-JZVNZ-SCPZM" , Helpers . GetMachineCode(2 )));
108108 if (result == true ) {
109109 System . out. println(" Deactivation successful." );
110110 } else {
@@ -122,7 +122,7 @@ import io.cryptolens.models.*;
122122public static void main(String args[]) {
123123 String auth = " " ;
124124
125- boolean result = Key . Deactivate(auth, new DeactivateModel (3349 , " MTMPW-VZERP-JZVNZ-SCPZM" , Helpers . GetMachineCode(), true ));
125+ boolean result = Key . Deactivate(auth, new DeactivateModel (3349 , " MTMPW-VZERP-JZVNZ-SCPZM" , Helpers . GetMachineCode(2 ), true ));
126126 if (result == true ) {
127127 System . out. println(" Deactivation successful." );
128128 } else {
0 commit comments