Recreate file_hash from attachments

Started by knutknut, December 04, 2012, 06:56:26 AM

Previous topic - Next topic

knutknut

Hey,

Im looking for how to generate a new file_hash for attachments. I started to code a migration python (w/ mysqldb api) script from a very old phorum to SMF.

Here is what I found in Subs.php:

sha1(md5($filename . time()) . mt_rand());

Is it right for my use ? Thanks

Joker™

Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Advertisement: