XiaoMi / mobile-ai-bench

Benchmarking Neural Network Inference on Mobile Devices
Apache License 2.0
363 stars 58 forks source link

Weak Cryptographic Hash #34

Closed QiAnXinCodeSafe closed 4 years ago

QiAnXinCodeSafe commented 4 years ago

https://github.com/XiaoMi/mobile-ai-bench/blob/6798ccd22e9148934350e886a1b0b2b50037e53b/aibench/python/utils/bench_utils.py#L19

Weak cryptographic hashes cannot guarantee data integrity and should not be used in security-critical contexts.It is recommended to use SHA-224, SHA-256,SHA-384

lee-bin commented 4 years ago

Thanks for your advice, we use MD5 because some older devices don't have built-in SHA command.