File tree Expand file tree Collapse file tree
src/main/java/org/apache/commons/codec/digest Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments