asdf2014 opened a new pull request #2047: URL: https://github.com/apache/iotdb/pull/2047
FYI, the benchmark results of these digest algorithms from https://automationrhapsody.com/md5-sha-1-sha-256-sha-512-speed-performance/ . | Hash | Case 1 (ms) | Case 2 (ms) | Case 3 (ms) | Case 4 (ms) | Case 5 (ms) | Case 6 (ms) | | ------- | ----------- | ----------- | ----------- | ----------- | ----------- | ----------- | | MD5 | 627.4 | 765.6 | 1488.8 | 839 | 1029.4 | 1738.2 | | SHA-1 | 604 | 748.2 | 1325 | 916.8 | 1009.6 | 1632.4 | | SHA-256 | 737.8 | 851 | 1504.4 | 1168.2 | 1260 | 1963.6 | | SHA-512 | 1056.4 | 1158.8 | 1837.4 | 1118.4 | 1227.4 | 1923 | The collision probability of `MD5` is too high, `SHA1` has been cracked by Google, and `SHA-512` is the most time-consuming. Therefore, SHA-256 is the best choice. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
