I wrote my own sha implementations but i cant get them to read files correctly. i know to use
open(file,'rb').read() as the input into the algorithm, but
import hashlib
hashlib.sha1(open(file,'rb').read()).hexdigest() and my code
sha_1(open(file,'rb').read()) return two different hashes.
any idea why? i know that a normal string will have the correct output, so why would the string of a file be any different?