Add license key verification to your apps

栏目: IT技术 · 发布时间: 5年前

内容简介:NOTE: This project will be improved with lots of new features!f-licenseis 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!Se

f-license

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

f-licenseis 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 languge 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

以上所述就是小编给大家介绍的《Add license key verification to your apps》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

程序员健康指南

程序员健康指南

Joe Kutner / 陈少芸 / 人民邮电出版社 / 2014-9-20 / 31.60元

本书是为程序员量身制作的健康指南,针对头痛、眼部疲劳、背部疼痛和手腕疼痛等常见的问题,简要介绍了其成因、测试方法,并列出了每天的行动计划,从运动、饮食等方面给出详细指导,帮助程序员在不改变工作方式的情况下轻松拥有健康。 本书适合程序员、长期伏案工作的其他人群以及所有关心健康的人士阅读。一起来看看 《程序员健康指南》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具