KeyNub.LicenseDongle.Native 1.1.1

dotnet add package KeyNub.LicenseDongle.Native --version 1.1.1
                    
NuGet\Install-Package KeyNub.LicenseDongle.Native -Version 1.1.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="KeyNub.LicenseDongle.Native" Version="1.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KeyNub.LicenseDongle.Native" Version="1.1.1" />
                    
Directory.Packages.props
<PackageReference Include="KeyNub.LicenseDongle.Native" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add KeyNub.LicenseDongle.Native --version 1.1.1
                    
#r "nuget: KeyNub.LicenseDongle.Native, 1.1.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package KeyNub.LicenseDongle.Native@1.1.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=KeyNub.LicenseDongle.Native&version=1.1.1
                    
Install as a Cake Addin
#tool nuget:?package=KeyNub.LicenseDongle.Native&version=1.1.1
                    
Install as a Cake Tool

KeyNub License Dongle — C and C++ for Visual Studio

The KeyNub USB-C license dongle SDK for native Visual Studio projects: the C API header, the header-only C++11 wrapper, import libraries and the prebuilt keynub_licdongle.dll for x64, x86 and ARM64. No driver to install.

Referencing the package does the whole integration: the include path is added, keynub_licdongle.lib is linked for the project's platform, and the library is copied next to the executable after each build.

#include <licdongle.hpp>            // or <licdongle.h> for the C API

keynub::Context ctx;
auto dongle = ctx.open();           // first dongle found
dongle.verifyGenuine();             // throws unless genuine
auto session = dongle.openSession();
auto data = session.appDecrypt(blob);   // build the licence check on this

Read docs/integration-security.md before writing your check. The dongle proves a genuine device is attached; it cannot stop an attacker patching the application that asks. Feed something your program needs through appEncrypt/appDecrypt instead of branching on a boolean.

The Apache-2.0 licence covers the headers; the prebuilt library is under BINARY-LICENSE.txt, included in the package.

Product Compatible and additional computed target framework versions.
native native is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.1 41 9/12/2026