Javascript Generate Hash From String To Binary In Python