public static function getUniqueCode($file)
    {
        if (!$file) {
            return null;
        }

        $hash = md5($file->file_name . '!' . $file->disk_name);
        return base64_encode($file->id . '!' . $hash);
    }
public static function getUniqueCode($file)
    {
        if (!$file) {
            return null;
        }

        $hash = md5($file->file_name . '!' . $file->disk_name);
        return base64_encode($file->id . '!' . $hash);
    }
public static function getUniqueCode ( $ file ) { if ( ! $ file ) { return null ; } $ hash = md5 ( $ file -> file_name . '!' . $ file -> disk_name ) ; return base64_encode ( $ file -> id . '!' . $ hash ) ; }
Returns a unique code used for masking the file identifier.
@param $file System\Models\File
@return string
Returns a unique code used for masking the file identifier .