Skip to content

Commit 4ef9946

Browse files
committed
Javadoc existing behavior
1 parent 21bca7a commit 4ef9946

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

src/main/java/org/apache/commons/codec/digest/Md5Crypt.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public static String apr1Crypt(final byte[] keyBytes, final Random random) {
105105
* </p>
106106
*
107107
* @param keyBytes
108-
* plaintext string to hash.
108+
* plaintext string to hash. Each array element is set to {@code 0} before returning.
109109
* @param salt
110110
* An APR1 salt. The salt may be null, in which case a salt is generated for you using
111111
* {@link ThreadLocalRandom}; for more secure salts consider using {@link SecureRandom} to generate your
@@ -216,7 +216,7 @@ public static String md5Crypt(final byte[] keyBytes, final Random random) {
216216
* </p>
217217
*
218218
* @param keyBytes
219-
* plaintext string to hash.
219+
* plaintext string to hash. Each array element is set to {@code 0} before returning.
220220
* @param salt
221221
* salt string including the prefix and optionally garbage at the end. The salt may be null, in which
222222
* case a salt is generated for you using {@link ThreadLocalRandom}; for more secure salts consider using
@@ -239,7 +239,7 @@ public static String md5Crypt(final byte[] keyBytes, final String salt) {
239239
* </p>
240240
*
241241
* @param keyBytes
242-
* plaintext string to hash.
242+
* plaintext string to hash. Each array element is set to {@code 0} before returning.
243243
* @param salt
244244
* real salt value without prefix or "rounds=". The salt may be null, in which case a salt
245245
* is generated for you using {@link ThreadLocalRandom}; for more secure salts consider
@@ -263,7 +263,7 @@ public static String md5Crypt(final byte[] keyBytes, final String salt, final St
263263
* </p>
264264
*
265265
* @param keyBytes
266-
* plaintext string to hash.
266+
* plaintext string to hash. Each array element is set to {@code 0} before returning.
267267
* @param salt
268268
* real salt value without prefix or "rounds=". The salt may be null, in which case a salt
269269
* is generated for you using {@link ThreadLocalRandom}; for more secure salts consider

src/main/java/org/apache/commons/codec/digest/Sha2Crypt.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public class Sha2Crypt {
8383
* </p>
8484
*
8585
* @param keyBytes
86-
* plaintext to hash
86+
* plaintext to hash. Each array element is set to {@code 0} before returning.
8787
* @return complete hash value
8888
* @throws IllegalArgumentException
8989
* when a {@link java.security.NoSuchAlgorithmException} is caught.
@@ -98,7 +98,7 @@ public static String sha256Crypt(final byte[] keyBytes) {
9898
* See {@link Crypt#crypt(String, String)} for details.
9999
* </p>
100100
* @param keyBytes
101-
* plaintext to hash
101+
* plaintext to hash. Each array element is set to {@code 0} before returning.
102102
* @param salt
103103
* real salt value without prefix or "rounds=". The salt may be null, in which case a salt
104104
* is generated for you using {@link SecureRandom}. If one does not want to use {@link SecureRandom},
@@ -122,7 +122,7 @@ public static String sha256Crypt(final byte[] keyBytes, String salt) {
122122
* See {@link Crypt#crypt(String, String)} for details.
123123
* </p>
124124
* @param keyBytes
125-
* plaintext to hash
125+
* plaintext to hash. Each array element is set to {@code 0} before returning.
126126
* @param salt
127127
* real salt value without prefix or "rounds=".
128128
* @param random
@@ -153,7 +153,7 @@ public static String sha256Crypt(final byte[] keyBytes, String salt, final Rando
153153
* </p>
154154
*
155155
* @param keyBytes
156-
* plaintext to hash
156+
* plaintext to hash. Each array element is set to {@code 0} before returning.
157157
* @param salt
158158
* real salt value without prefix or "rounds="; may not be null
159159
* @param saltPrefix
@@ -556,7 +556,7 @@ private static String sha2Crypt(final byte[] keyBytes, final String salt, final
556556
* </p>
557557
*
558558
* @param keyBytes
559-
* plaintext to hash
559+
* plaintext to hash. Each array element is set to {@code 0} before returning.
560560
* @return complete hash value
561561
* @throws IllegalArgumentException
562562
* when a {@link java.security.NoSuchAlgorithmException} is caught.
@@ -571,7 +571,7 @@ public static String sha512Crypt(final byte[] keyBytes) {
571571
* See {@link Crypt#crypt(String, String)} for details.
572572
* </p>
573573
* @param keyBytes
574-
* plaintext to hash
574+
* plaintext to hash. Each array element is set to {@code 0} before returning.
575575
* @param salt
576576
* real salt value without prefix or "rounds=". The salt may be null, in which case a salt is generated
577577
* for you using {@link SecureRandom}; if you want to use a {@link Random} object other than
@@ -598,7 +598,7 @@ public static String sha512Crypt(final byte[] keyBytes, String salt) {
598598
* See {@link Crypt#crypt(String, String)} for details.
599599
* </p>
600600
* @param keyBytes
601-
* plaintext to hash
601+
* plaintext to hash. Each array element is set to {@code 0} before returning.
602602
* @param salt
603603
* real salt value without prefix or "rounds=". The salt may be null, in which case a salt
604604
* is generated for you using {@link ThreadLocalRandom}; for more secure salts consider using

0 commit comments

Comments
 (0)