Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.16
-
None
Description
The Javadocs for classes in theĀ org.apache.commons.codec.digest.* package reference the use of ThreadLocalRandom for salt generation (specifically Crypt, Md5Crypt and Sha2Crypt classes). However, looking at the source code, the salt generation is happening the in the B64.java class which uses SecureRandom - on line 79:
Additionally, the documentation doesn't list any of these under digest classes:
https://commons.apache.org/proper/commons-codec/userguide.html
I am providing a PR that does the following:
- Documents that SecureRandom is used by changing Javadocs in these classes
- Changes salt generation in UnixCrypt to use SecureRandom to match the other classes
- Update the userguide to list all functions from the digest package
- Changes the hyperlinks in the user guide from HTTP to HTTPS
Attachments
Issue Links
- links to