When is it safe to use a broken hash function?

后端 未结 6 2067
太阳男子
太阳男子 2020-12-28 16:38

It is trivial to use a secure hash function like SHA-256, and continuing to use MD5 for security is reckless behavior. However, there are some complexities to hash function

6条回答
  •  佛祖请我去吃肉
    2020-12-28 17:32

    The only time it is safe to use a broken hash function is when the consequences of a collision are harmless or trivial, e.g. when assigning files to a bucket on a filesystem.

提交回复
热议问题