diff --git a/panbox-core/src/org/panbox/core/crypto/CryptCore.java b/panbox-core/src/org/panbox/core/crypto/CryptCore.java index 8bcf77a..ecd87c9 100644 --- a/panbox-core/src/org/panbox/core/crypto/CryptCore.java +++ b/panbox-core/src/org/panbox/core/crypto/CryptCore.java @@ -497,7 +497,7 @@ public static boolean checkChecksum(File f, byte[] tocheck) throws NoSuchAlgorithmException, NoSuchProviderException, FileNotFoundException, IOException { byte[] ref = genChecksum(f); - return Arrays.equals(ref, tocheck); + return MessageDigest.isEqual(ref, tocheck); } public static char[] deriveKeystorePass(char[] userpass, byte[] salt)