在哪里存储我的产品密钥以进行设置? [英] Where to store my Product Key for my setup?

查看:75
本文介绍了在哪里存储我的产品密钥以进行设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

在Windows应用程序中,我需要存储产品密钥以进行设置.我需要您的建议,以安全可靠地存储我的产品密钥.

我的考虑是...
如果我将我的产品密钥存储在安装程序中,则用户可以将同一产品密钥用于不同的安装程序安装.
因此,我有一个想法,经过一些加密过程后,将我的产品密钥存储在数据库中.在使用特定的产品密钥后,我将设置一个标志.因此,我可以验证特定密钥是否有效.

这是正确的过程吗?还是我需要改进一些?
等待您的回复...


问候
Karthick

hi all,

In my windows application, i need to store the product key for my setup. I need your suggestions to store my Product key safely and Securely.

My considerations are...
If i store my Product Key inside setup, then user can use the same product Key for different setup installation.
So, i have an idea to store my Product Key in Database after some Encryption process. I will set a flag after using the particular Product Key. So, i can validate whether the particular Key is valid or not.

Is this correct process?? or i need to improve some ??
waiting for your replies...


Regards
Karthick

推荐答案

加密可能会有所帮助,但可能不会-请记住,要使用或检查产品密钥,您必须先对其进行解密-这需要加密密钥.
足够聪明的人可以通过检查代码来找到解密密钥,足够聪明的人来找到解密密钥!

由于用户将在某个时候输入产品密钥,因此他不是已经拥有了吗?那么现在隐藏它有什么意义呢?

为什么不使用Windows方法:产品密钥+硬件信息-> Microsoft谁返回仅对特定产品密钥+硬件信息组合有效的验证码?无需加密!

由于产品密钥在最后已针对特定硬件信息进行了验证,因此您仅记录使用该产品密钥的硬件,并且除非首先卸载该产品密钥,否则不要让其重复使用.
Encryption may help, but probably won''t - bear in mind that in order to use or check your product key you have to decrypt it - which needs the encryption key.
Anyone who is smart enough to find the key, is smart enough to find the decryption key by examining your code!

Since the user will have entered the product key at some point, doesn''t he already have it? So what is the point of hiding it now?

Why not use the Windows method: Product key + hardware information -> Microsoft who returns an validation code which is only effective for that particular Product key + hardware information combination? No encryption needed!

Since the Product key is validated against specific hardware information at your end, you just record the hardware against which the product key was used, and don''t let it be re-used unless it was uninstalled first.


我同意OriginalGriff,早期的Microsoft没有提供这样的硬件信息,但是我曾经获得过每个LAN卡都唯一的LAN卡号.

人们也在出售加密狗,这种加密狗很独特,需要连接到LPT(打印机端口)中,但不再使用了.

您可以使用ProductKey获取LAN卡信息,也可以获取硬件信息以生成唯一密钥.

问候
鲁西
I agree with OriginalGriff, earlier Microsoft was not provide such Hardware information but I used to get LAN Card Number which is unique for every LAN Card.

People were selling dongle also which is unique and need to attached in LPT (Printer Port), but not it is no longer in use.

You can either get LAN Card Info with your ProductKey or can get Hardware Information to generate a Unique Key.

Regards
Rushi


这篇关于在哪里存储我的产品密钥以进行设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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