Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
RajKumar1242 opened this issue Apr 1, 2025 · 2 comments
Open

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

RajKumar1242 opened this issue Apr 1, 2025 · 2 comments

Comments

@RajKumar1242
Copy link

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

@markaren
Copy link
Member

markaren commented Apr 1, 2025

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.

@markaren
Copy link
Member

markaren commented Apr 1, 2025

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
Labels
None yet
Development

No branches or pull requests

2 participants