After some researches about SHA2 , we found that the length of an encrypted text with SHA2 is 64
However , we have 65 chars , and the hexadecimal chars goes from 0 to F , but in this sha2 we have ’k’
So, the error is here, we’ll just remove the ’k’ and then use an online sha2 cracker
we Found that the plain-text is: 4dM1n
Know , we hash this plain-text with SHA-1 and we found :
However , we have 65 chars , and the hexadecimal chars goes from 0 to F , but in this sha2 we have ’k’
So, the error is here, we’ll just remove the ’k’ and then use an online sha2 cracker
we Found that the plain-text is: 4dM1n
Know , we hash this plain-text with SHA-1 and we found :
a7c9d5a37201c08c5b7b156173bea5ec2063edf9
题目标题写着SHA2,这题应该又是一个解密问题。
但题目叙述中却说,解码的过程中可能会出现错误而且加密的方式未知。
96719db60d8e3f498c98d94155e1296aac105ck4923290c89eeeb3ba26d3eef92
就先尝试把这串hash值拿去SHA224跟SHA256解密,果然找不到任何结果。看到上面题目这样叙述以后,仔细看了一下这个字串,发现里面竟然有”k”,SHA加密法的字元范围是[af]跟[0-9],所以不可能有”k”字元出现在hash字串中。另外一点,题目提供的hash值长度是65字元,SHA224长度是56字元,而SHA256长度则是64字元,显然当中的”k”值是多余的。
去除k字元以后再做一次SHA256解密,就成功得到了密码:
4dM1n
但题目要求说提交的答案要是这个密码的SHA-1加密值,就在把这个字串做SHA-1加密即可得解:
a7c9d5a37201c08c5b7b156173bea5ec2063edf9
沒有留言:
發佈留言