From: Jim Procter Date: Fri, 12 Jul 2024 16:38:59 +0000 (+0100) Subject: JAL-3631 shorter digest string for the unique user app dir X-Git-Tag: Release_2_11_4_0~20^2~18 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c9f9fa66bb7ee2e97445e3efbd893e7434aa08d5;p=jalview.git JAL-3631 shorter digest string for the unique user app dir --- diff --git a/getdown/src/getdown/core/src/main/java/com/threerings/getdown/data/EnvConfig.java b/getdown/src/getdown/core/src/main/java/com/threerings/getdown/data/EnvConfig.java index 8c73262..a43b1dd 100644 --- a/getdown/src/getdown/core/src/main/java/com/threerings/getdown/data/EnvConfig.java +++ b/getdown/src/getdown/core/src/main/java/com/threerings/getdown/data/EnvConfig.java @@ -348,7 +348,8 @@ public final class EnvConfig { public static final String getFullPathToDirectoryHash(String install_app_dir) { - MessageDigest md = Digest.getMessageDigest(Digest.VERSION); + //sha1 is good enough we hope - paths are short + MessageDigest md = Digest.getMessageDigest(1); byte[] contents = install_app_dir.getBytes(UTF_8); String hash = StringUtil.hexlate(md.digest(contents)); return hash;