Skip to content

Commit 5b5e075

Browse files
committed
Javadoc correction
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1744646 13f79535-47bb-0310-9956-ffa450edef68
1 parent 8376943 commit 5b5e075

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

  • src/main/java/org/apache/commons/codec/digest

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,11 @@ public static String crypt(final String key) {
114114
* storedPwd.equals(crypt(enteredPwd, storedPwd))
115115
* </pre>
116116
* <p>
117-
* The resulting string starts with the marker string ({@code $6$}), continues with the salt value and ends with a
118-
* {@code "$"} sign followed by the actual hash value. For DES the string only contains the salt and actual hash.
119-
* It's total length is dependent on the algorithm used:
117+
* The resulting string starts with the marker string ({@code $n$}), where n is the same as the input salt.
118+
* The salt is then appended, followed by a {@code "$"} sign.
119+
* This is followed by the actual hash value.
120+
* For DES the string only contains the salt and actual hash.
121+
* The total length is dependent on the algorithm used:
120122
* <ul>
121123
* <li>SHA-512: 106 chars
122124
* <li>SHA-256: 63 chars

0 commit comments

Comments
 (0)