Skip to content

Commit

Permalink
Deprecate Sha2Crypt.Sha2Crypt()
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Dec 28, 2024
1 parent 1b815fe commit 4d917fa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/changes/changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ The <action> type attribute can be add,update,fix,remove.
<action type="fix" dev="ggregory" due-to="Gary Gregory">Rewrite DaitchMokotoffSoundex.soundex(String) using String.join().</action>
<action type="fix" issue="CODEC-324" dev="ggregory" due-to="Michael Froh">Use Resource.class to load resources, rather than its class loader #353.</action>
<action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate CharSequenceUtils.CharSequenceUtils().</action>
<action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate Sha2Crypt.Sha2Crypt().</action>
<!-- ADD -->
<!-- UPDATE -->
<action type="update" dev="ggregory" due-to="Dependabot">Bump org.apache.commons:commons-lang3 from 3.14.0 to 3.17.0 #296, #305, #313.</action>
Expand Down
10 changes: 10 additions & 0 deletions src/main/java/org/apache/commons/codec/digest/Sha2Crypt.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit 4d917fa

Please # to comment.