Hash function that produces short hashes?

后端 未结 10 1716
走了就别回头了
走了就别回头了 2020-12-07 23:58

Is there a way of encryption that can take a string of any length and produce a sub-10-character hash? I want to produce reasonably unique ID\'s but based on message content

10条回答
  •  忘掉有多难
    2020-12-08 00:20

    It is now 2019 and there are better options. Namely, xxhash.

    ~ echo test | xxhsum                                                           
    2d7f1808da1fa63c  stdin
    

提交回复
热议问题