mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
CS-14826, CS-14996: fix the md5 checksum
This commit is contained in:
parent
f6efcd39a3
commit
e96de4bc28
@ -293,7 +293,7 @@ public class DownloadManagerImpl implements DownloadManager {
|
||||
}
|
||||
byte[] md5sum = digest.digest();
|
||||
BigInteger bigInt = new BigInteger(1, md5sum);
|
||||
checksum = bigInt.toString(16);
|
||||
checksum = String.format("%032x",bigInt.toString(16));
|
||||
return checksum;
|
||||
}catch(IOException e) {
|
||||
return null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user