如何保护我的应用程序的版权? [英] How can I protect the copyright for my application?

查看:329
本文介绍了如何保护我的应用程序的版权?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我上周写了一个应用程序.而且我希望它只能在其他人的计算机上运行一个月,除非他对该帐户收费.
我应该在应用程序中编写什么代码?请告诉我您的代码或给我下载链接(在vc6.0中开发).
预先谢谢您.

Hello,
I wrote an application last week. And I want it runs on others'' computer only one month unless he charge the account.
What code shall I write in my application ? Please show me your code or give me a link to download (developing in vc6.0).
Thank you in advance.

推荐答案

在CodeProject上已被多次询问和回答,请搜索论坛.

有多种方法可以实现此目的,每种方法都有自己的p + c.

1)基本时间戳记,当您的应用程序首次运行时,请在某处记录时间戳记,例如配置文件,还需要某种形式的许可证密钥来确认购买的身份验证

2)与#1相同,但以某种方式加密文件

3)使用注册表并在一些晦涩的位置中深埋许可证信息和时间戳记

4)使用一种哈希方式来区分许可证密钥等.在首次运行该应用程序时,它会创建一个随机的安装ID,此+用户名/电子邮件是+您提供的许可证密钥,以使所有组件组合在一起并进行验证使用某种算法

5)通过互联网要求质询响应机制来验证使用情况

6)使用第三方许可证控制来实现该功能

7)使用第三方加密狗实施许可机制

这应该让您思考并开始尝试一些代码.
This has been been asked and answered many times on CodeProject, search the forums.

There are a number of ways to achieve this, each with its own p+c''s.

1) basic timestamp, when your application is first run, record a timestamp somewhere e.g. config file, and also some form of license key is required to confirm authentication of purchase

2) Same as #1, but encrypt the file in some way

3) use the registry and bury deep in some obscure location license information and time stamping

4) use one way hashes to genterate the license keys etc. when the app is first run it creates a random installation ID, this + users name/email is + a license key from you is required to make all the pieces come together and validate using some algorithm

5) require challenge response mechanism via the internet to authenticate use

6) use a 3rd party license control to implement the function

7) use 3rd party dongle to implement the license mechanism

That should get you thinking and of to start coming up with some code to try.


您需要在应用程序中放入 license 选项.

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


看看这些:许可证密钥生成 [如何为C#App创建产品密钥 [c#许可 [ ^ ]
它们在C#中,可以作为入门参考.

还有,
.NET Framework的密码学101 [
You need to put in license option in your application.

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.......


Have a look at these: License Key Generation[^] or: How can I create a Product Key for my C# App[^] or: c# Licensing[^]
They are in C# which can be looked at for starting.

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


这篇关于如何保护我的应用程序的版权?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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