Skip to content
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

Encryption of onnx files #24

Open
KristofferSkare opened this issue Mar 11, 2024 · 0 comments
Open

Encryption of onnx files #24

KristofferSkare opened this issue Mar 11, 2024 · 0 comments
Labels
enhancement New feature or request question Further information is requested wontfix This will not be worked on

Comments

@KristofferSkare
Copy link
Collaborator

When creating FMUs using this tool the resource folder in the FMU will contain an onnx file that describes the ML Model contained in the FMU. This means that if someone has access to the FMU file they aslo have access to an full explaination of the ML Model that can easily be parsed and read using a fitting tool.

If we want to be able to share these FMUs without exposing the ML Model inside we need to do something about the onnx file.
One thing that could be done is encrypting the file itself and decrypt it when the FMU is in use. This could work by having the encryption key "baked into" the binary so that it is not easily readable/accessible from the FMU.

This could work by having the encryption key in a .h file that is outside the folder containing the fmu source, but is compiled into the binary by linking it as a library in the cmake file.

It is still unsure if this is something that is worth implementing or if it is even needed by any use case.

@KristofferSkare KristofferSkare added enhancement New feature or request question Further information is requested labels Mar 11, 2024
@StephanieKemna StephanieKemna added the wontfix This will not be worked on label Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants