question

Tomi Kosunen avatar image
1 Like"
Tomi Kosunen asked Jason Lightfoot answered

What are the possibilities to protect a model FlexScript code?

Hi

What are the possibilities to protect a model FlexScript code? I have found three possibilities to protect a model. Are there any other? Any thoughts, what would be the best/easiest?


1. Protect the model with password. That encrypts the whole model. With the password you get access to the whole model, including FlexScript code. So that is good in some conditions, but not suitable for protecting the FlexScript code in the model.

2. Exporting the FlexScript code to dll. That would fulfill the requirement. I have not compiled dll:s before so I'd prefer staying in FlexScript.

3. Exporting the FlexScript code to Python and encrypt the Pyhon code (e.g. with SOURCEdefender). I'm not sure if that's possible. What would be the benefit over dll/c++?


FlexSim 23.0.0
protected model
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jacob W2 avatar image Jacob W2 ♦ commented ·

Hi @Tomi Kosunen,

We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·
Tomi Kosunen avatar image Tomi Kosunen Jacob W2 ♦ commented ·
I don't see the Accept button like usual. But yes, problem solved
0 Likes 0 ·

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered
Have you considered serving the model via a web interface rather than supplying it as a file?
· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Tomi Kosunen avatar image Tomi Kosunen commented ·
I have not really considered that yet. That would solve the model protection issue (I quess). In that case, how would you transfer the parameters in the local computer file to the server computer (for the model to read). And also the model statistics from the server computer file to the local computer? In all: how would you copy any files between server and client computer? Is there a ready-made UI or do I have to build one?

From the license point of view: is the FlexSim licence on the web server computer? If I share the model via web interface, does the user (company) need a FS license at all?

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Tomi Kosunen commented ·

If I recall correctly the web interface allows the uploading of non-flexsim documents which could contain the (bulk) information/parameters you need - while of course a dashboard can be used to manually change values. Better than this would be to provide a database to which the client could upload bulk data themselves and have FlexSim read from that on the server.

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Tomi Kosunen commented ·
The webserver will launch its locally installed FlexSim using whatever license is on that machine and have access to the relevant features of that license whether it's Express, Runtime or Enterprise.

You can contact your distributor for more information about the terms of licenses in reference to this use case.


0 Likes 0 ·