All Projects → keygen-sh → example-electron-license-activation

keygen-sh / example-electron-license-activation

Licence: MIT license
An example of how to implement software licensing and device activation in an Electron application

Programming Languages

javascript
184084 projects - #8 most used programming language
SCSS
7915 projects
HTML
75241 projects

Projects that are alternatives of or similar to example-electron-license-activation

java-license-manager
OddSource Code Java License Manager
Stars: ✭ 22 (-60%)
Mutual labels:  license-management, license-keys
awesome-open-source-licensing
Cool links, tools & papers related to Open Source Licensing
Stars: ✭ 17 (-69.09%)
Mutual labels:  license-management, software-licensing
web-to-desktop-framework-comparison
This repository was made to create an objective comparison of multiple framework that grant us to "transform" our web app to desktop application formats.
Stars: ✭ 605 (+1000%)
Mutual labels:  electron-app
TrialMaker.Demo
A powerful yet straight-forward library suite that provides secure trial license generation and copy-protection features for .NET applications. It also supports premium license generation for expired free-trials.
Stars: ✭ 21 (-61.82%)
Mutual labels:  license-management
rebaslight
Rebaslight - an easy to use special effects editor
Stars: ✭ 39 (-29.09%)
Mutual labels:  electron-app
electron-admin-antd-vue
Electron Vue3.x Ant Design Admin template
Stars: ✭ 21 (-61.82%)
Mutual labels:  electron-app
competiwatch-desktop
Desktop app built in Electron for tracking your competitive match history in Overwatch.
Stars: ✭ 94 (+70.91%)
Mutual labels:  electron-app
DataStore
Visual develop tool of creating mocked Json
Stars: ✭ 30 (-45.45%)
Mutual labels:  electron-app
The-Wall
The Wall automatically changes desktop wallpaper based on the tags selected by the user
Stars: ✭ 48 (-12.73%)
Mutual labels:  electron-app
chronobreak
Pomodoro timer made in Electron that emphasises replicating the original technique.
Stars: ✭ 22 (-60%)
Mutual labels:  electron-app
tim
manage issues with order
Stars: ✭ 51 (-7.27%)
Mutual labels:  electron-app
Quest
Quest is a Unified Engine for Searching Things (JIRA, Confluence, Google Drive, Dropbox paper, Slack...)
Stars: ✭ 76 (+38.18%)
Mutual labels:  electron-app
dooring-electron-lowcode
基于electron的lowcode编辑器桌面端
Stars: ✭ 146 (+165.45%)
Mutual labels:  electron-app
keep
Run Google Keep in the menu bar
Stars: ✭ 66 (+20%)
Mutual labels:  electron-app
source-me
ℹ️ A small, minimal application built with Electron which provides necessary tools needed for web development.
Stars: ✭ 91 (+65.45%)
Mutual labels:  electron-app
triangle-app
Desktop application for Triangle.
Stars: ✭ 32 (-41.82%)
Mutual labels:  electron-app
vinproma
vMix Input Progress Monitor App. View progress of current playing input in HTML or send to vMix title (XAML recommended).
Stars: ✭ 33 (-40%)
Mutual labels:  electron-app
Shuttle
The fastest access to your favorite applications.
Stars: ✭ 52 (-5.45%)
Mutual labels:  electron-app
notion-linux-wrapper
Notion.so desktop application for Linux
Stars: ✭ 37 (-32.73%)
Mutual labels:  electron-app
license-checker-php
CLI tool to verify used licenses in composer dependencies
Stars: ✭ 28 (-49.09%)
Mutual labels:  license-management

Example Electron License Manager

A minimal Electron v12 + React v17 app built with Parcel, showcasing how to implement an in-app software licensing portal with the following functionality:

  1. License key validation
  2. Device fingerprinting and activation
  3. Device management and deactivation
  4. Signature verification
  5. Auto-updates with electron-builder

image

Running the example

First up, configure a couple application variables. The values below, embedded within the app, are for our demo account. Feel free to find/replace to your own account's values.

# Your Keygen account's DER encoded Ed25519 verify key
KEYGEN_VERIFY_KEY="MCowBQYDK2VwAyEA6GAeSLaTg7pSAkX9B5cemD0G0ixCV8/YIwRgFHnO54g="

# Your Keygen account ID
KEYGEN_ACCOUNT_ID="1fddcec8-8dd3-4d8d-9b16-215cac0f9b52"

# Your Keygen product ID
KEYGEN_PRODUCT_ID="7071feff-b5f3-434a-83c1-3ab3f3592325"

Next, install dependencies with yarn:

yarn

Then start the app in dev mode:

yarn dev

Configuring a license policy

Visit your dashboard and create a new policy with the following attributes:

{
  "authenticationStrategy": "LICENSE",
  "requireFingerprintScope": true,
  "maxMachines": 3,
  "concurrent": false,
  "floating": true,
  "strict": true
}

The maxMachines value can be whatever you prefer. The example should also work for a non-floating policy.

Building and packaging

To build the app:

yarn build

To run the latest build:

yarn start

To package and publish the app:

yarn dist

Questions?

Reach out at [email protected] if you have any questions or concerns!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].