@@ -335,7 +335,7 @@ private function compress($str, $table, $extens, $recursive = false, $tab_name =
335335 $ this ->err = -11 ;
336336 return false ;
337337 }
338- $ name_zip = $ this ->folder . "/ " . $ extens . '/ ' . $ tab_name . '_ ' . md5 ( $ tab_name ) . '. ' . $ extens . '.zip ' ;
338+ $ name_zip = $ this ->folder . "/ " . $ extens . '/ ' . $ tab_name . '_ ' . hash ( ' crc32b ' , $ tab_name ) . '. ' . $ extens . '.zip ' ;
339339 $ res = $ zip ->open ($ name_zip , ZIPARCHIVE ::CREATE );
340340 if (!file_exists ($ name_zip )) {
341341 $ comment = "Created with Backup SQL By Chak10 " . PHP_EOL ;
@@ -345,13 +345,13 @@ private function compress($str, $table, $extens, $recursive = false, $tab_name =
345345 $ comment = $ zip ->getArchiveComment () . PHP_EOL ;
346346 }
347347 } else {
348- $ res = $ zip ->open ($ this ->folder . "/ " . $ extens . '/ ' . $ table . '_ ' . time () . '- ' . md5 ( $ table . microtime (true )) . '. ' . $ extens . '.zip ' , ZipArchive::CREATE );
348+ $ res = $ zip ->open ($ this ->folder . "/ " . $ extens . '/ ' . $ table . '_ ' . time () . '- ' . hash ( ' crc32b ' , microtime (true )) . '. ' . $ extens . '.zip ' , ZipArchive::CREATE );
349349 $ comment = "Created with Backup SQL By Chak10 " . PHP_EOL ;
350350 $ comment .= "Version: " . ($ this ->version ) . PHP_EOL ;
351351 $ comment .= "Github: " . ($ this ->site ) . PHP_EOL ;
352352 }
353353 if ($ res === TRUE ) {
354- $ zip ->addFromString ($ table . '- ' . date ('Y-m-d_H:i:s ' ) . '- ' . md5 ( $ table . microtime (true )) . '. ' . $ extens , $ str );
354+ $ zip ->addFromString ($ table . '- ' . date ('Y-m-d_H:i:s ' ) . '- ' . hash ( ' crc32b ' , microtime (true )) . '. ' . $ extens , $ str );
355355 $ comment .= "Table: " . $ table . " - CRC32b: " . hash ('crc32b ' , $ str ) . ' - Date: ' . date ('Y-m-d H:i:s ' );
356356 $ zip ->setArchiveComment ($ comment );
357357 $ zip ->close ();
@@ -381,7 +381,7 @@ private function nocompress($res, $table, $extens, $new_dir = false, $name_new =
381381 fwrite ($ fpc , $ res ) === false ? $ this ->res = false : $ this ->res = true ;
382382 fclose ($ fpc );
383383 } else {
384- $ name = $ this ->folder . "/ " . $ extens . '/ ' . $ table . '_ ' . time () . '- ' . md5 ( $ table . microtime (true )) . '. ' . $ extens ;
384+ $ name = $ this ->folder . "/ " . $ extens . '/ ' . $ table . '_ ' . time () . '- ' . hash ( ' crc32b ' , microtime (true )) . '. ' . $ extens ;
385385 $ fpc = @fopen ($ name , 'w ' );
386386 $ fpc === false ? $ this ->res = false && $ this ->err = -10 : $ this ->res = true ;
387387 if (!$ this ->res )
0 commit comments