Skip to content

Commit

Permalink
[#1561] SECURITY: avoid MD5 in doc/example code (broken/risky algorithm)
Browse files Browse the repository at this point in the history
Closes #1561
  • Loading branch information
remkop committed Jan 31, 2022
1 parent 21c1e66 commit fcf32f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Checksum implements Callable<Integer> {

@Option(names = ['-a', '--algorithm'], description = ['MD2, MD5, SHA-1, SHA-256, SHA-384, SHA-512,',
' or any other MessageDigest algorithm.'])
String algorithm = 'MD5'
String algorithm = 'SHA-1'

Integer call() throws Exception {
files.each {
Expand Down

0 comments on commit fcf32f0

Please sign in to comment.