84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
用hashlib.sha1()计算sha1值 返回ans = h.digest() type(ans)是'str' len(ans)是20 ans本质上是一个160bit的大数 此时需要对不同的ans值进行xor或者取对数运算 请问有什么办法吗?
走同样的路,发现不同的人生
You can take out each character in ans, use ord to get its int value, and then perform operations such as xor or logarithm
ord('a') == 97 chr(97) == 'a'
You can take out each character in ans, use ord to get its int value, and then perform operations such as xor or logarithm