https://github.com/wang-bin/appkey
license key generator and validator used in libmdk
https://github.com/wang-bin/appkey
Last synced: 10 months ago
JSON representation
license key generator and validator used in libmdk
- Host: GitHub
- URL: https://github.com/wang-bin/appkey
- Owner: wang-bin
- License: mit
- Created: 2021-04-09T01:43:03.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-09-14T15:17:46.000Z (almost 2 years ago)
- Last Synced: 2025-01-14T09:43:24.513Z (over 1 year ago)
- Language: C
- Size: 150 KB
- Stars: 12
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# appkey
license key generator and validator used in [libmdk](https://github.com/wang-bin/mdk-sdk)
### Windows
appid is "ProductName/CompanyName" from rc file. Rc file can be generated by visual studio, and qmake for qt apps(`QMAKE_TARGET_PRODUCT`/`QMAKE_TARGET_COMPANY`).
Rc can be encoded in utf8(default by qtcreator) if there are non ascii chars, and add `#pragma code_page(65001)`in rc (recommended for visual studio), or add rc compiler option`/c 65001``
Generate a key for windows:
`keygen -gen -verify -appid "$(echo -n ProductName/CompanyName| iconv -t utf8)"`
If rc is not encoded in utf8(may support more words in appid), must call `setCodePage(cp)`