Jump to content

md5 the file name?


phpSensei

Recommended Posts

Everytime I retrieve the admin's avatar from the phpbb table, to show it on the front page, the file wont show..

 

in the database, the file name is:2_1189208725.png

 

but in the image directory, there is some sort of hash: bf7f219391dc87b1b483147ce4db23d9_2.png

 

I tried hashing it, but nothing comes up the same.

Link to comment
https://forums.phpfreaks.com/topic/68431-md5-the-file-name/
Share on other sites

I would guess that only the string after the underscore is being hashed. Have you tried this?

foreach(hash_algos() as $hash)
   echo hash($hash, $filename);

 

That will show you all the available hashes. To see which one it was, just print_r(hash_algos());

Or try taking the "2_" out of $filename. That is just a guess.

Link to comment
https://forums.phpfreaks.com/topic/68431-md5-the-file-name/#findComment-344068
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.