title:算法与数据结构之美—哈希算法哈希算法哈希算法地原理就是将任意长度地二进制值串映射为固定长度地二进制值串,映射规则就是哈希算法;
哈希算法需要满足地要求:
从哈希值不能反向推导出原始数据;
对于输入数据敏感,哪怕只改变了一个bit,最后得到的哈希值也不大相同;
散列冲突的概率要很小,对于不同的原始数据,哈希值相同的概率非常小;
哈希算法的执行效率要高效,针对于长文本,也能进行快速哈希计算;
应用安全加密常用于加密的哈希算法是MD5(MD5:Message-Digest Algorithm,消息摘要算法)和SHA(Secure Hash Algorithm,安全散列算法...
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
Mo...