For example: for a string of hexadecimal data 8147786 c4d15106333bf278d71dadaf1079ef2d2440a4dde37d747ded5403592 sha256 operation:
I got as a result of the 14 f562fc030f1b129eedf6fc680b4db095ea3078e1b7853e4f37131c4670a322
The answer is 507 online a5b8dfed0fc6fe8801743720cedec06aa5c6fca72b07c49964492fb98a714
Great god answer please, or point out the mistake in Python code, I am learning Python 3 day small white,

CodePudding user response:
In addition a string of hexadecimal data 8147786 c4d15106333bf278d71dadaf1079ef2d2440a4dde37d747ded5403592, is as a hexadecimal integer is better, or as a string of hexadecimal string is appropriate?CodePudding user response:

CodePudding user response:

Such input sha256 x81 '0' (b) the calculation result is not correct, the input methods are as ASCII string 0 x81 together the hash computation, rather than computational and hexadecimal string 81 hash value,