File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
main/java/io/cryptolens/methods Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -671,7 +671,10 @@ private static boolean isLikelyUUID(String s) {
671671 }
672672
673673 private static String sha256 (String input ) {
674- try {
674+
675+ return SHA256 (input );
676+
677+ /* try {
675678 MessageDigest md = MessageDigest.getInstance("SHA-256");
676679 byte[] digest = md.digest(input.getBytes(StandardCharsets.UTF_8));
677680 StringBuilder hex = new StringBuilder(digest.length * 2);
@@ -682,7 +685,7 @@ private static String sha256(String input) {
682685 return hex.toString();
683686 } catch (Exception e) {
684687 return null;
685- }
688+ }*/
686689 }
687690
688691}
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ public void testMachineCode() throws IOException {
8686
8787 assertTrue (Helpers .IsOnRightMachine (license , 2 ));
8888
89- String a = Helpers .getMachineCodev3 ( );
89+ String a = Helpers .GetMachineCode ( 3 );
9090 System .out .println (a );
9191
9292
You can’t perform that action at this time.
0 commit comments