please look at this cods :
$file = fopen("passwords.txt", "r") or die("Unable to open file!"); $test = fgets($file); echo $encrypt = md5(sha1($test)); // output is 68823bc3767b5215ea848d3ce9838bed | false echo "</br>"; echo $encrypt = md5(sha1("12345678"));// output is 8843028fefce50a6de50acdf064ded27 | true
the Contents of passwords.txt is >> 12345678
i try to encrypt it by md5(sha1) , but there is a problem , output of md5(sha1($test)) is : 68823bc3767b5215ea848d3ce9838bed
but true ouput should be 8843028fefce50a6de50acdf064ded27
I have the same values but the output is different. how can i fix it ?