在C#.Net中制作许可软件的代码 [英] Code to make License Software in C#.Net

查看:104
本文介绍了在C#.Net中制作许可软件的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想制作一个清单系统,该系统通过一个CD驱动器安装在单台PC上,并且该CD无法在另一台PC上运行.我认为可以通过将软件制作为许可证版本来完成.但是我不知道如何通过编码来应用它...
请尽快给我答复.

I want to make a inventory system which is install on single PC through a single CD Drive & that CD cannot be run on another PC. I thought it may be done by making my software as license version. But i don''t have any idea that how can i apply it through coding...
Please send me reply as soon as possible.

推荐答案

有多种方法可以实现这一目的
1)加密的许可证文件,其中包含到期日期等.
2)注册表中保存的加密许可证密钥
3)需要Internet连接的质询/响应机制
4)可能是其他人.......

尝试:许可证密钥生成 [如何为我的C#应用​​创建产品密钥 [ ^ ]或:c#许可 [ ^ ]

此外,用于.NET Framework的密码学101 [
There are different ways to achieve this
1) encrypted license files that contains the expiry dates etc.
2) encrypted license keys held in the registry
3) challenge/response mechanism which require an internet connection
4) probably others.......

Try: License Key Generation[^] or: How can I create a Product Key for my C# App[^] or: c# Licensing[^]

Also, Cryptography 101 for the .NET Framework[^]
Hope this helps.


请参见此处 [ ^ ].


几乎100%确保CD仅安装在一台计算机上的唯一方法是通过创建外部Web服务来验证您的许可证密钥.安装程序/程序应提供机器特定的指纹以及许可证密钥,并且Web服务应使用已知的许可证密钥拒绝安装,除非机器指纹相同.

但是,这种方法存在一些问题:如果用户彻底更改其计算机配置,则他将无法重新安装该程序(如果有必要的话)...
The only way that you can be almost 100% sure that the cd is only installed on ONE computer is by making an external webservice to validate your license key. The installer/program should supply a machine specific fingerprint as well as the license key and the web service should deny installation using an already known license key unless the machine fingerprint is the same.

There are some problems with this approach, though: If the user drastically changes his machine configuration, then he will not be able to reinstall the program (if that should be necessary)...


这篇关于在C#.Net中制作许可软件的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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