f-license

command module
v0.0.0-...-b877db6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

README

f-license

NOTE: This project will be improved with lots of new features!

f-license is an open-source license creation and verification tool. You can quickly add license key verification to your application. Don't implement yourself, just use the open-source product!

Premium

Ready to use the premium dashboard enhancing managing your customers and their licenses, sending them emails about the status of their licenses. If so, please reach out us here.

Features

  • Generating license keys with one of HMAC and RSA algorithms
  • Remote verification of a license key
  • Local verification of a license key
  • Storing licence keys in MongoDB
  • Activating and inactivating customer license keys
  • f-cli tool to manage licenses by terminal

See the latest Documentation.

How to use

Prerequisites

  • MongoDB server

Start f-license server

  1. Create and configure config.json file like sample_config.json
  2. Run go build
  3. Run ./f-license

Embed client code to your app

If your app's language is Go, you need to add just one line code to your application after importing client.

import "github.com/furkansenharputlu/f-license/client"
Remote verification
verified, err := client.VerifyRemotely("https://localhost:4242", "trusted-server-cert", "license-key")
Local verification
verified, err := client.VerifyLocally("secret-or-public-key", "license-key")

If you are not using Go, you can easily implement their equivalent in your app's language for now. In future, we will implement for different languages.

CLI usage

  1. Run go build -o f-cli ./cli
  2. Generate license.json like sample_license.json

asciicast

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL