What is mid.decode in s = hashlib.sha1(mid.decode('hex'))?
What you got in $var is a STRING not a hex number
Use $var = pack 'H*', $var ;
In reply to Re: SHA1 Not Generating Properly ( hex string is not hex encoded number )
by Anonymous Monk
in thread SHA1 Not Generating Properly
by awohld
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |