Skip to content

Commit 5c31cf4

Browse files
committed
Minor fix
1 parent f3adb60 commit 5c31cf4

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/main/java/io/cryptolens/methods/Helpers.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

src/test/java/io/cryptolens/HelpersTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)