About Encryption and Importing Encrypted Modelica Libraries and Models

When you work with encryption, you can use two alternatives. One alternative is a tool-specific encryption and the other alternative is a Modelica standard encryption. The tool-specific encryption is fully supported, while the Modelica standard encryption is partially supported.

This page discusses:

Tool-Specific Encryption (.moe Files)

You can work with tool-specific encryption of Modelica libraries and models. Such files have the extension .moe.

Tool-Specific Encryption of Modelica Libraries and Models to .moe Files

You can encrypt Modelica libraries and models to .moe files. For more information, see Encrypting a Modelica Library.

This encryption is a tool-specific encryption for some 3DEXPERIENCE apps. Dymola Behavior Modeling and the stand-alone tool Dymola can encrypt libraries. Such libraries can be used, for example, in Systems Simulation Design and Systems Simulation Analysis.

Other vendors than Dassault Systèmes can create encrypted Modelica libraries, and can also license them. That is referred to as external licensing.

Importing and Using Tool-Specific Encrypted Modelica Libraries and Models (.moe Files)

Dymola Behavior Modeling, Systems Simulation Design, and stand-alone Dymola can import encrypted Modelica libraries and models, and use them.

Note: Systems Simulation Design cannot import Modelica libraries depending on external licensing.

If already available, encrypted Modelica libraries and models can be used by, for example, the apps:

  • Behavior Experience
  • Functional & Logical Design
  • Systems Simulation Analysis

Standardized Modelica Encryption (.mol Files)

You can work with the Modelica standardized encryption of libraries and models. Such files have the extension .mol.

Encryption of Modelica Libraries and Models to Standardized .mol Files

Important: Creating and encrypting libraries or models to the .mol file format is not supported by any 3DEXPERIENCE apps or stand-alone tool from Dassault Systèmes.

The standardized Modelica encryption is a current Modelica change proposal, MCP-0039 Licensing and encryption: Standardized Encryption of Modelica Libraries and Artefacts, SEMLA. This proposal is intended to be included in a future version of the Modelica Language Specification.

The intention is to provide a standardized library format for multiple Modelica tools, reducing the overhead of distributing libraries. The status of the project can be found here: https://github.com/modelica/Encryption-and-Licensing.

The basic mechanism is:

  • The Modelica library vendor provides the Modelica library and a manifest. If encryption is used, an LVE (Library Vendor Executable) is also provided to handle the decryption and license validation. All is zipped into a .mol file.
  • Known Modelica tools can unzip the .mol file and communicate with the provided LVE to read the library content. A tool vendor becomes known to the library vendor by a tool-specific public key.
  • If the .mol file is licensed, the vendor provides the license and instructions for using that license.
    Note: Currently all licensed .mol files are externally licensed since .mol file creation is not supported by Dassault Systèmes apps.

Library vendors need to handle the internal details. End-users of the library only may need to know that the format is .mol. If the library is licensed, the end-user must also follow the instructions from the library vendor for the licensing.

Importing and Using Standardized Encrypted Modelica Libraries and Models (.mol Files)

Dymola Behavior Modeling, Systems Simulation Design, and stand-alone Dymola can import encrypted Modelica libraries and models in .mol format, and use them.

Note: Systems Simulation Design cannot import Modelica libraries depending on external licensing.

In Systems Simulation Analysis, you can create studies from encrypted Modelica libraries and models in .mol format, if they are already available in the database.