CodeMeter Embedded嵌入式加密
Software Protection and Licensing for Embedded Systems
CodeMeter Embedded is a specialized library that integrates CodeMeter’s proven protection and licensing functions directly into embedded systems. Available as a static or dynamic library, it provides comprehensive cryptographic and licensing functions through CodeMeter API for embedded operating systems such as Linux, VxWorks, or QNX. It can also be used under Windows or macOS.
The source code variant can be used bare-metal on microcontrollers or together with a real-time operating system (RTOS).
A Library for Resource-Constrained Environments
While standard solutions often require substantial resources for network and management functions, these requirements are difficult to meet in embedded systems with strict memory and performance limitations.
The solution is a compact library for direct integration into the software to be protected and licensed. CodeMeter API and the license format remain compatible with CodeMeter Runtime. By eliminating the need for a separate runtime service, this model provides full license control and cryptographic security without burdening the limited hardware environment.
Developers can work with CodeMeter SDK on their desktop system, create and test licenses, and then deploy them to embedded devices without any changes. Tools such as CodeMeter License Editor, CmBoxPgm for command-line programming, and CodeMeter License Central are available for license creation.
Modular Architecture and Flexibility
Internally, CodeMeter Embedded consists of several functional modules, with the core module always included. Depending on the requirements, modules that are not needed can be enabled or disabled during the build process:
- CmDongle module: Standard module for hardware-based licenses via USB dongles, microSD, SD, CF, and CFast cards, as well as ASICs via SPI or USB
- CmActLicense module: Software-based licenses with individual binding to device properties
- CmLAN module: Network access to licenses from a CodeMeter License Server
- Concurrent License Cache: Secure coordination of multiple CmEmbedded instances via shared memory
- Runtime Bridge: Tunneling of container access to CodeMeter Runtime for development environments
For resource-constrained environments, customized versions can be created that include only the required modules. This significantly reduces library size and resource consumption. This is particularly useful for microcontroller deployments, where limiting resource usage is essential.
Supported License Containers and Deployment Options
CodeMeter Embedded supports the full range of CodeMeter license containers. CmDongles provide hardware-based licensing via USB or SD card form factors, with licenses securely stored in the smart card chip embedded in the container. CodeMeter ASIC (the on-board dongle solution) can be connected via USB or SPI. CmActLicenses enable software-based licensing bound to the specific characteristics of an embedded device. Both approaches can also be used in parallel, allowing manufacturers to combine hardware-secured and software-bound licensing within the same product environment.
CmActLicense binding is implemented via an adapter-based mechanism that uses selected hardware properties of the embedded device. Access to CodeMeter License Servers in local networks is handled through CmLAN. This also enables the use of CmCloud licenses that are made available through LAN server.
Key Use Cases
CodeMeter Embedded is the solution for manufacturers and software vendors using CodeMeter licensing and protection technology on IoT devices, industrial sensors, headless systems, and embedded systems – essentially, on almost any platform or in any environment built around a computer that is not a desktop system.
Possible use cases are endless: licensing in medical devices, IP protection in camera sensors, software protection in PLC programs, licensing of function modules in soft PLCs, and many more. The list of real-world deployments is extensive.
Licensing for VxWorks uses the same package, license containers, and APIs as licensing for an ARM-based microcontroller or an RTOS system.
Cryptography and Security
CodeMeter Embedded offers state-of-the-art encryption: AES-128/256 for symmetric encryption, ECC with 224-, 256-, 384-, and 521-bit keys, and RSA with key lengths of up to 4096 bits for asymmetric operations. Communication between the system and the CmDongle is encrypted by default. CodeMeter Embedded is continuously developed, ensuring that the required functions for post-quantum cryptography (PQC), will also be integrated into the code in the future.
Supported Platforms and Integration
CodeMeter Embedded supports a broad range of embedded platforms: Linux, VxWorks, QNX, Windows, and macOS. The library is available for both 32-bit and 64-bit architectures and supports different processor architectures. Integration is handled through standard build systems: Starting with version 3.0, CodeMeter Embedded uses CMake as its build system. The library is available as a static library and is integrated during linking. For individual adaptations, previously unsupported systems, and microcontroller deployments, CodeMeter Embedded is available as a source code package.
Technical Requirements
For standard systems based on 32- and 64-bit ARM or Intel architectures, we provide libraries for Linux, Windows, macOS, VxWorks, and QNX.
For microcontroller implementations running on bare metal or with an RTOS, CodeMeter Embedded requires 4 KB to 40 KB of RAM and less than 128 KB of flash memory, depending on functionality and use case. It is written in C comforming to the C99 standard. Licenses can be stored on CmASICs, accessed via SPI, held in CmActLicenses bound to the microcontroller, or provided over a LAN by a CodeMeter Server.
Differentiation from CodeMeter Runtime
While CodeMeter Runtime runs as a full service on Windows, macOS, and Linux desktop systems and provides comprehensive management, network, and UI functions such as CodeMeter WebAdmin, CodeMeter Embedded is a lean library without service components. The library is specifically optimized for embedded platforms and can be scaled down to the microcontroller level.
The API and license format of CodeMeter Embedded are compatible with the desktop version, so licenses created on the development system with CodeMeter Runtime can be used seamlessly on embedded devices with CodeMeter Embedded.
CodeMeter 版本功能对比
| 功能特性 | CodeMeter Embedded | CodeMeter Runtime |
|---|---|---|
| 作为服务/守护进程运行的授权服务器 | - | 支持 |
| CodeMeter WebAdmin | - | 支持 |
| CodeMeter 控制中心 | - | 支持 |
| CodeMeter Core API – 动态库 | - | 支持 |
| CodeMeter Core API – 静态库 | SDK | SDK |
| WUPI 与 HIP | - | SDK |
| 附加运维工具 (cmu, CmDust) | - | 支持 |
| CmDongle (硬件锁) | 支持 | 支持 |
| CmActLicense (软授权) | 支持 | 支持 |
| CmCloudContainer (云容器) | 通过 CmLAN 支持 | 支持 |
| CmReady | 支持 | 支持 |
| 局域网客户端 (LAN Client) | 支持 | 支持 |
| 局域网服务端 (LAN Server) | - | 支持 |
| 演示、试用及订阅授权 | 支持 | 支持 |
| 按需/计次授权 (Pay-Per-Use) | 支持 | 支持 |
| 基于功能的授权 (Feature-based) | 支持 | 支持 |
| 基于版本的授权 (Version-based) | 支持 | 支持 |
| 授权转移主节点 (License Transfer Master) | - | 支持 |
| 授权转移终端节点 (License Transfer Endpoint) | 支持 | 支持 |
| 基于离线文件的授权更新 | 支持 | 支持 |
| 终端服务器识别 | - | 支持 |
| 远程桌面识别 | - | 支持 |
| 安全密钥存储 | 支持 | 支持 |
平台与操作系统
CodeMeter Embedded 静态库的体积视目标平台而定,通常介于 400 KB 至 600 KB 之间。针对 RTOS(实时操作系统)等特定环境或高度定制化的应用场景,系统可直接提供底层源代码 (Source Code) 以供集成。
CodeMeter Embedded 目前全面支持以下平台环境:
| SDK 授权名称 | 操作系统版本要求 | 支持的硬件架构 |
|---|---|---|
| License CodeMeter Embedded SDK Linux ARM | Linux Kernel ≥ 2.4.10 (搭配 glibc ≥ 2.4) | ARMv6, ARMv7, ARMv8 小端模式 (ARMEL) |
| License CodeMeter Embedded SDK Linux x86 | Linux Kernel ≥ 2.4.10 (搭配 glibc ≥ 2.4) | x86 与 x86-64 |
| License CodeMeter Embedded SDK Linux MIPS | Linux Kernel ≥ 2.4.10 (搭配 glibc ≥ 2.4) | MIPS 32 Bit LE (小端模式) |
| License CodeMeter Embedded SDK Linux x64 musl | Linux Kernel ≥ 2.4.10 (搭配 glibc ≥ 2.4) | x86-64 |
| License CodeMeter Embedded SDK Linux RISC V | Linux Kernel ≥ 2.4.10 (搭配 glibc ≥ 2.4) | RISC V |
| License CodeMeter Embedded SDK QNX ARM | Up to CmE 3.12: QNX 6.5, 7.0 From CmE 3.20: QNX 7.0 | ARMv7 |
| License CodeMeter Embedded SDK QNX x86 | Up to CmE 3.12: QNX 6.5, 7.0 From CmE 3.20: QNX 7.0 | x86 |
| License CodeMeter Embedded SDK VxWorks ARM | Up to CmE 3.12: VxWorks 6.9, 7 From CmE 3.20: VxWorks 7 | ARMv7 |
| License CodeMeter Embedded SDK VxWorks PowerPC | Up to CmE 3.12: VxWorks 6.9, 7 From CmE 3.20: VxWorks 7 | PowerPC 大端模式 (ARMEB) |
| License CodeMeter Embedded SDK VxWorks x86 | Up to CmE 3.12: VxWorks 6.9, 7 From CmE 3.20: VxWorks 7 | x86 与 x86-64 |
| License CodeMeter Embedded SDK Windows x86 | Windows ≥ 10 | x86 与 x86-64 |
| License CodeMeter Embedded SDK Windows ARM | Windows ≥ 10 | ARMv8 |
| License CodeMeter Embedded SDK macOS | macOS ≥ Ventura 13 | Apple Silicon 与 x86-64 |
| License CodeMeter Embedded SDK Android ARM | Android Version 5 - 11 | ARMv7 与 ARMv8 |
| License CodeMeter Embedded SDK Source Code | 任意 (Any) | |
| License CodeMeter Embedded SDK Source Code for Microcontrollers | 裸机环境 |
Frequently Asked Questions
CodeMeter Runtime runs as a full service with UI and network functions on desktop systems, while CodeMeter Embedded is a lean library without service components. It is integrated directly into the application and is ideally suited for embedded platforms, including microcontrollers.
CodeMeter Embedded supports embedded Linux, VxWorks, QNX, Windows, macOS, and bare-metal environments on microcontrollers. It is available for 32-bit and 64-bit architectures and for different processor families.
You can use CmDongle for hardware-based licenses (USB dongles, SD cards, ASICs), CmActLicense for software-based device binding, or CmLAN for network access to a CodeMeter License Server. These options can also be used in parallel.
It supports AES-128/256 for symmetric encryption, ECC with 224- to 521-bit keys, and RSA up to 4096 bits for asymmetric operations. Communication with CmDongles is encrypted by default, and post-quantum cryptography will be integrated in the future.
The library consists of modules such as CmDongle, CmActLicense, CmLAN, Concurrent License Cache, and Runtime Bridge. During the build process unnecessary modules can be disabled to minimize size and resource consumption. This is particularly useful for microcontrollers.
The static library is linked using standard build systems such as CMake. Source code is available for individual adaptations or bare-metal deployments.
Yes. The license format and API are fully compatible. Licenses created with CodeMeter Runtime on the desktop work seamlessly on embedded devices with CodeMeter Embedded.
CmActLicense binds licenses to individual device properties via an adapter implemented by the customer. This adapter detects hardware characteristics of the embedded device and enables secure, non-transferable activations.
You can use CodeMeter License Editor for graphical license creation, CmBoxPgm for command-line programming, or CodeMeter License Central for centralized license management. AxProtector NC uses CodeMeter Embedded internally for high-end protection.
CodeMeter µEmbedded is now part of CodeMeter Embedded
Since the release of CodeMeter Embedded 4.0 in April 2026, CodeMeter µEmbedded has been incorporated into CodeMeter Embedded, bringing our embedded licensing and protection solutions together in one package.
Originally designed for microcontrollers and FPGAs with limited resources, CodeMeter µEmbedded combined a small footprint with software protection and device-bound licensing, including the ability to activate additional features through license updates. These capabilities now form part of CodeMeter Embedded.
If you are using CodeMeter µEmbedded or planning a new project, please contact us for guidance on the appropriate version and integration options.