如何在我的应用程序中合并许可证密钥? [英] How to incorporate a license key in my application?

查看:261
本文介绍了如何在我的应用程序中合并许可证密钥?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

感谢您的快速回复...

假设我有用于创建产品密钥,许可证密钥和激活密钥的软件.我想知道在应用程序中该怎么做,以便它可以识别产品密钥?我是否应该在应用程序中对所有可能的产品密钥或激活密钥的副本进行硬编码?我应该在我的应用程序中的哪个位置存储该信息?可能在注册表项中... :(


在项目的最后阶段,我完全迷失了.我感觉就像是从没有降落伞的飞机上跳下来一样.



谢谢您,

Thank you for your quick replies...

Let say I have the software to create product key, license key and Activation key. What I would like to know is what to do in my application so it can recognize a product key? Should I hardcode a copy of all possible product keys or activation keys within my application? Where in my application I should store that information? may be in registry keys... :(


I am totally lost in this final stage of my project. I feel like jumping from an airplane without parachutes..



Thank you,

推荐答案

您的密钥应该有一些逻辑.如果它完全是随机数,那么您只需要对所有可能性进行硬编码.但是您应该对密钥进行格式化,以便在解密时可以确保它包含必要的信息,例如产品名称,版本类型,到期日期,访问权限级别.

然后,解密密钥并确保它与该格式匹配.
There should be some logic to your key. If it''s totally just random numbers, then you''d just have to hard code all of the possibilities. But your key should be formatted so that when you decrypt it, you can make sure that it contains the necessary information, like a product name, version type, expiration dates, their level of access privileges.

Then, you decrypt the key and make sure that it matches that format.


您应该创建两个项目,密钥生成器和密钥验证器,生成器将根据您制作的数学算法生成密钥,验证程序将对给定密钥进行逆向工程,如果密钥与给定的算法相匹配,您应该接受,
验证程序代码应嵌入在应用程序和安装程序中,而生成器将与开发人员一起使用
asma hashaykeh
you should creat two project , key generator and key validator , the generator will generate key according to mathmatical alogorithem you making , and the validator will reverse engineer the giving key and if the key match the algorithem given you should accept ,
validator code should embedded in the application and installer while generator would be with developer
asma hashaykeh


序列密钥生成
串行密钥生成的输入
一个.硬盘序列号
b.物理MAC地址
C.用户数
d.版本号
e.月
F.年份

Serial Key Generation
Inputs for Serial Key Generation
a. HDD Serial Key
b. Physical MAC Address
c. Number of Users
d. Version Number
e. Month
f. Year

PlainText = modHardware.GetHDSerialFirmware & "_" _
  & modHardware.GetMACAddress & "_" _
  & txtNumofPC.Text & "_" _
  & txtversion.Text & "_" _
  & DateTime.Month(DateTime.Date) & "_" _
  & DateTime.Year(DateTime.Date)



使用以下链接进行加密.
http://www.di-mgt.com.au/cryptoBlowfishDemo.html [ ^ ]



use following link for encryption.
http://www.di-mgt.com.au/cryptoBlowfishDemo.html[^]


这篇关于如何在我的应用程序中合并许可证密钥?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆