Hash function that produces short hashes?

后端 未结 10 1695
走了就别回头了
走了就别回头了 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:18

    If you don't need an algorithm that's strong against intentional modification, I've found an algorithm called adler32 that produces pretty short (~8 character) results. Choose it from the dropdown here to try it out:

    http://www.sha1-online.com/

提交回复
热议问题