内容简介: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
-
Create and configure
config.jsonfile like sample_config.json -
Run
go build -
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
-
Run
go build -o f-cli ./cli -
Generate
license.jsonlike sample_license.json
以上所述就是小编给大家介绍的《Add license key verification to your apps》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Head First Design Patterns
Elisabeth Freeman、Eric Freeman、Bert Bates、Kathy Sierra、Elisabeth Robson / O'Reilly Media / 2004-11-1 / USD 49.99
You're not alone. At any given moment, somewhere in the world someone struggles with the same software design problems you have. You know you don't want to reinvent the wheel (or worse, a flat tire),......一起来看看 《Head First Design Patterns》 这本书的介绍吧!