space928 / Blender-O3D-IO-Public

A plugin supporting blender 2.79.x-3.x.x for importing and exporting OMSI .sco, .cfg, and .o3d files
GNU General Public License v3.0
36 stars 5 forks source link

I think encryption is currently broken #48

Open github-actions[bot] opened 1 year ago

github-actions[bot] commented 1 year ago

https://api.github.com/space928/Blender-O3D-IO-Public/blob/30fc61afe3d0de1faf0f0d5f75fba87ae10d4ce1/o3d_io/o3dconvert.py#L380


        # Write extended header
        options_byte = (1 if long_triangle_indices else 0) | (2 if alt_encryption_seed else 0)
        if not encrypted:
            # TODO: I think encryption is currently broken
            encryption_key = 0xffffffff
        write("<BI", options_byte, encryption_key)