Add license key verification to your apps

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

内容简介: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》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

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

新零售进化论

新零售进化论

陈欢、陈澄波 / 中信出版社 / 2018-7 / 49.00

本书主要介绍了新零售的进化现象和规律,提出了新零售的第一性原理是物理数据二重性,即在新零售时代,所有的人、货、场既是物理的也是数据的。 通过这个原点,进一步衍生出了新零售的八大核心算法,并用大量的辅助观点和新零售案例来揭示新零售背后的算法逻辑。 综合一系列的理论推演和案例讲解,作者重点回答了以下3个问题: ● 我们是行业的强者,如果跟不上新零售的潮流,会不会被淘汰? ● 我......一起来看看 《新零售进化论》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具