Suggest change from MD5 to SHA-512 for security cocnern.
Suggest change from MD5 to SHA-512 for security cocnern.
This commit is contained in:
parent
ab572a9378
commit
f85a203f77
1 changed files with 1 additions and 1 deletions
|
|
@ -208,7 +208,7 @@ public class AggregatorUtil {
|
|||
|
||||
private byte[] md5(byte[] data) {
|
||||
try {
|
||||
MessageDigest d = MessageDigest.getInstance("MD5");
|
||||
MessageDigest d = MessageDigest.getInstance("SHA-512");
|
||||
return d.digest(data);
|
||||
} catch (NoSuchAlgorithmException e) {
|
||||
throw new RuntimeException(e);
|
||||
|
|
|
|||
Loading…
Reference in a new issue