@@ -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