Sha-1 hash fixed point

社会主义新天地 提交于 2020-01-17 03:08:44

问题


how hard is it to find x where sha1(x) = x? where x is the form of 'c999303647068a6abaca25717850c26c9cd0d89c'

i think the fact that there are sha1 collisions make this possible, but, how easy (or hard) is it to find an example?


回答1:


Read Cryptanalysis of SHA-1 on Wikipedia. There's more information than you need on that article and its references combined.

Edit:

how hard is it to find x where sha1(x) = x?

Such an attack is known as a preimage attack and finding such an x is usually much harder than a general collision attack, i.e. finding arbitrary x1 and x2 such that sha(x1) = sha(x2).




回答2:


SHA1 Collisions can be Found in 2^63 Operations. I would say its rather hard. You could go about brute forcing it. Get the book applied cryptography and sit down for a read. Look into the Birthday Paradox, which can be used to find collisions.




回答3:


The one most important reason for existence of cryptographic hash functions (of which SHA family functions are) is to make finding inputs corresponding to a given digest difficult. A cryptographic hash function producing N-bit digests is considered good if to find a matching input one must perform 2^N/2 operations in average, that is, no other way than brute-force is reliably possible.




回答4:


So you are searching for mathematical invariant for SHA1 transformation. invariant subspace problem. :-)



来源:https://stackoverflow.com/questions/3935717/sha-1-hash-fixed-point

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!