diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 79383ca808..c34d3a55fc 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -48,6 +48,7 @@ The type attribute can be add,update,fix,remove. Rewrite DaitchMokotoffSoundex.soundex(String) using String.join(). Use Resource.class to load resources, rather than its class loader #353. Deprecate CharSequenceUtils.CharSequenceUtils(). + Deprecate Sha2Crypt.Sha2Crypt(). Bump org.apache.commons:commons-lang3 from 3.14.0 to 3.17.0 #296, #305, #313. diff --git a/src/main/java/org/apache/commons/codec/digest/Sha2Crypt.java b/src/main/java/org/apache/commons/codec/digest/Sha2Crypt.java index 52466d09fb..f004c83069 100644 --- a/src/main/java/org/apache/commons/codec/digest/Sha2Crypt.java +++ b/src/main/java/org/apache/commons/codec/digest/Sha2Crypt.java @@ -613,4 +613,14 @@ public static String sha512Crypt(final byte[] keyBytes, String salt, final Rando } return sha2Crypt(keyBytes, salt, SHA512_PREFIX, SHA512_BLOCKSIZE, MessageDigestAlgorithms.SHA_512); } + + /** + * Consider private. + * + * @deprecated Will be private in the next major version. + */ + @Deprecated + public Sha2Crypt() { + // empty + } }