Skip to content

Commit 33f678b

Browse files
committed
Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1552821 13f79535-47bb-0310-9956-ffa450edef68
1 parent ddf4ba4 commit 33f678b

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public class Md5Crypt {
6464
*
6565
* @param keyBytes
6666
* plaintext string to hash.
67+
* @return the hash value
6768
* @throws RuntimeException
6869
* when a {@link java.security.NoSuchAlgorithmException} is caught. *
6970
*/
@@ -76,6 +77,7 @@ public static String apr1Crypt(final byte[] keyBytes) {
7677
*
7778
* @param keyBytes
7879
* plaintext string to hash.
80+
* @return the hash value
7981
* @throws IllegalArgumentException
8082
* if the salt does not match the allowed pattern
8183
* @throws RuntimeException
@@ -94,6 +96,7 @@ public static String apr1Crypt(final byte[] keyBytes, String salt) {
9496
*
9597
* @param keyBytes
9698
* plaintext string to hash.
99+
* @return the hash value
97100
* @throws RuntimeException
98101
* when a {@link java.security.NoSuchAlgorithmException} is caught.
99102
*/
@@ -112,7 +115,7 @@ public static String apr1Crypt(final String keyBytes) {
112115
* @param salt
113116
* salt string including the prefix and optionally garbage at the end. Will be generated randomly if
114117
* null.
115-
* @return computed hash value
118+
* @return the hash value
116119
* @throws IllegalArgumentException
117120
* if the salt does not match the allowed pattern
118121
* @throws RuntimeException
@@ -129,6 +132,7 @@ public static String apr1Crypt(final String keyBytes, final String salt) {
129132
*
130133
* @param keyBytes
131134
* plaintext string to hash.
135+
* @return the hash value
132136
* @throws RuntimeException
133137
* when a {@link java.security.NoSuchAlgorithmException} is caught.
134138
*/
@@ -146,7 +150,7 @@ public static String md5Crypt(final byte[] keyBytes) {
146150
* @param salt
147151
* salt string including the prefix and optionally garbage at the end. Will be generated randomly if
148152
* null.
149-
* @return computed hash value
153+
* @return the hash value
150154
* @throws IllegalArgumentException
151155
* if the salt does not match the allowed pattern
152156
* @throws RuntimeException
@@ -160,9 +164,10 @@ public static String md5Crypt(final byte[] keyBytes, final String salt) {
160164
* Generates a libc6 crypt() "$1$" or Apache htpasswd "$apr1$" hash value.
161165
* <p>
162166
* See {@link Crypt#crypt(String, String)} or {@link #apr1Crypt(String, String)} for details.
163-
*
167+
*
164168
* @param keyBytes
165169
* plaintext string to hash.
170+
* @return the hash value
166171
* @throws IllegalArgumentException
167172
* if the salt does not match the allowed pattern
168173
* @throws RuntimeException

0 commit comments

Comments
 (0)