如何在短时间内快速找到字符串经过 sha1 算法的前 16 位的碰撞

2016-10-26 09:10:52 +08:00
 yfgeek

问题描述

如何在短时间内快速找到字符串经过 sha1 算法的前 16 位的碰撞

最近的一个作业,写了一个 linux shell 。

#!/bin/sh
for((i=0;i<1000000000;i++));
do
echo -n $i | sha1sum - | cut -c1-15 >> d0
done

做运算,可是速度太慢,要跑 3 天 3 夜,于是寻找资料:

工具

https://marc-stevens.nl/p/hashclash/downloads.php

https://malicioussha1.github.io/

https://github.com/ohadcn/hashclash/tree/master/hashclash

文章

https://cryptome.org/sha1-attacks.htm

http://blog.rexdf.org/2014/07/hash%E6%91%98%E8%A6%81%E7%AE%97%E6%B3%95%E7%9A%84%E6%94%BB%E5%87%BB/

大家有什么好想法吗

2513 次点击
所在节点    程序员
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/315507

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX