如何在安装过程中设置prouct键 [英] how to set prouct key during installation

查看:96
本文介绍了如何在安装过程中设置prouct键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个Windows应用程序项目,并且可以灵活地转换为.exe文件,但我希望用户在安装过程中需要提供产品安装密钥。怎么实现这个?我用c#.net

I developed a windows application project and flexible in convert to .exe file but i want user need to give Product installation key during installation. how to achieve this? i used c#.net

推荐答案





有很多方法,让我给你一个想法关于正常情况。



1)安装后第一次用户打开软件检查相应的密钥是否可以在注册表中找到?

2)如果没有密钥可用,则获取一些计算机硬件信息(如硬盘序列号,处理器ID等)并生成一个硬件密钥。

3)用户需要发送此硬件密钥和从您的最终,您可以为该特定计算机生成加密密钥。并且密钥不应该在任何其他计算机中使用,因为它将混合您的许可证信息和硬件信息。

4)如果密钥有效则只允许用户允许打开软件。



如果您有任何疑问,请告诉我。



祝你好运
Hi,

There are many ways, let me give you idea about normal scenario.

1) after installation and for the first time user open the software check for the corresponding key is available in registry ?
2) if no key is available then get some computer hardware information (like HDD serial no, Processor ID, etc) and generate one hardware key.
3) user need to send your this hardware key and from your end you can generate encrypted key for that particular computer. and the key should not be used in any other computer as it will be mix of your license information and hardware information.
4) if key is valid then only it will let user allow to open software.

Let me know in case you have any query

best luck


产品密钥= Sha128(您的密码+客户的机器代码)


客户的机器代码= Sha256(处理器S / N)+ Sha256(硬盘S / N)

客户的机器代码= Sha128(客户的机器代码);



生成的产品密钥示例:

40BD001563085FC35165329EA1FF5C5ECBDBBEEF



你可以看看CTI One Way Encryption,它可以产生如下关键字:

2KSF2-FPW9S-CN87S-3SKJX-QASX9



CTI文本加密: http://ctiencrypt.codeplex.com/
Product Key = Sha128("Your Secret Password" + Client''s Machine Code)

Client''s Machine Code = Sha256(Processor S/N) + Sha256(Hard Disk S/N)
Client''s Machine Code = Sha128(Client''s Machine Code);

Example of a Generated Product Key:
40BD001563085FC35165329EA1FF5C5ECBDBBEEF

You can take a look at CTI One Way Encryption, which can generate key something like this:
2KSF2-FPW9S-CN87S-3SKJX-QASX9

CTI Text Encryption: http://ctiencrypt.codeplex.com/


这篇关于如何在安装过程中设置prouct键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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