在终端中打印二进制打包的随机数时,它会生成一堆警报。该程序的代码是:from struct import pack, unpackimport hashlibimport sysprint "Input the message you want to work on:"message = raw_input()orig_hash = hashlib.sha512(message).digest()trialValue = 99999999999999999999target = 4103215547750nonce = 0while trialValue > target:nonce += 1packed_nonce = pack('>Q', nonce)print packed_noncetrialValue, = unpack('>Q',hashlib.sha512(packed_nonce + orig_hash).digest()[0:8])print nonceprint trialValue这没什么大不了的,但是没有人知道为什么会这样吗?
添加回答
举报
0/150
提交
取消