This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-io.git
The following commit(s) were added to refs/heads/master by this push: new 831088bc2 Javadoc More MD5 warnings 831088bc2 is described below commit 831088bc224fc391b079edb2a3abd31062746cdf Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Wed Sep 25 16:17:23 2024 -0400 Javadoc More MD5 warnings --- .../commons/io/input/MessageDigestCalculatingInputStream.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/io/input/MessageDigestCalculatingInputStream.java b/src/main/java/org/apache/commons/io/input/MessageDigestCalculatingInputStream.java index b3c6070a6..ba9aa9941 100644 --- a/src/main/java/org/apache/commons/io/input/MessageDigestCalculatingInputStream.java +++ b/src/main/java/org/apache/commons/io/input/MessageDigestCalculatingInputStream.java @@ -68,6 +68,9 @@ public class MessageDigestCalculatingInputStream extends ObservableInputStream { /** * Constructs a new {@link Builder}. + * <p> + * The default for compatibility is the MD5 cryptographic algorithm which is weak and should not be used. + * </p> */ public Builder() { try { @@ -161,7 +164,7 @@ public class MessageDigestCalculatingInputStream extends ObservableInputStream { } /** - * The default message digest algorithm. + * The default message digest algorithm {@code "MD5"}. * <p> * The MD5 cryptographic algorithm is weak and should not be used. * </p> @@ -179,7 +182,10 @@ public class MessageDigestCalculatingInputStream extends ObservableInputStream { } /** - * Gets a MessageDigest object that implements the default digest algorithm. + * Gets a MessageDigest object that implements the default digest algorithm {@code "MD5"}. + * <p> + * The MD5 cryptographic algorithm is weak and should not be used. + * </p> * * @return a Message Digest object that implements the default algorithm. * @throws NoSuchAlgorithmException if no Provider supports a MessageDigestSpi implementation.