file_hash = md5.md5(base64.encodestring(file_data).replace('\n','')).hexdigest()
$test = file_get_contents('test.png'); $test = str_replace("\n",'',$test); $test = base64_encode($test); echo md5($test);