Coder Social home page Coder Social logo

weimeiai / f-license Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gonnya/f-license

0.0 0.0 0.0 2.57 MB

Open Source License Key Generation and Verification Tool written in Go

License: Apache License 2.0

Go 96.94% Shell 1.85% Dockerfile 1.20%

f-license's Introduction

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!

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

f-license's People

Contributors

0xflotus avatar gonnya avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.