Skip to content

Source Code is visible in the PythonFMU resources folder. #234

Open

Description

@RajKumar1242

Hello Everyone,

We created an FMU3.0 Co-simulation using PythonFMU3. Unfortunately, when we unpack the FMU the source code is always visible to the user. This might cause problems in replicating the FMUs and violating the security of the FMU.

Is there any existing solution for this problem? We would be glad if we get support on this issue.

Best Regards
Raj Kumar

Activity

  1. markaren commented on Apr 1, 2025

    @markaren
    Member

    As you are using another library, you might want to ask there.

    However, see #221 for a possible solution. However, I have no idea if this can be reverse-engineered easily.

    Another approach would be to store the python script as a string variable in the shared library, but this requires per-instance compilation of the native library, which is not wanted for PythonFMU. But one could create a custom solution using e.g. https://github.com/Ecos-platform/fmu4cpp.

  2. markaren commented on Apr 1, 2025

    @markaren
    Member

    Encryption could be another solution, with the key available as an environment variable or similar. But these things are out of scope of this library. Nevermind, this would not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions