如何续订C#Windows应用程序? [英] how to Renew Rental C# Windows Application?

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

问题描述

你好

我已经使用C#和SQL开发了POS,我想将其出租给不同的客户,可以说三个月后的3个月,如果客户不支付租金,则申请将无法登录;如果客户支付了租金,那么我会给他一个他将输入以更新其应用程序的密钥,

请告诉我如何通过任何密钥续订他的申请,但是我希望每次和每个客户密钥都应该是唯一的plz帮助,因为我无法执行此操作.

关于

解决方案

您可能会比阻止盗版更多地使客户烦恼,但是...

使用加密.您发送的密钥包含验证期和所有其他信息,并使用私钥进行加密.应用程序使用公共密钥对其进行解码并检查内容.内容是客户ID加上有效期和任何其他信息.由于私有密钥是加密密钥,客户从未见过,因此,对应用程序进行反向工程并不重要-他仍然无法生成有效的到期密钥.


Hello

I have developed an POS using C# and SQL, i want to give it to different clients on rental basis let say for 3 months after three months application will fail to login if customer didnt pay rent, if customer pay rent then i will give him a key which he will enter to renew his app,

please tell me how can i renew his application by any key, but i want that each time and for each customer key should be unique plz help as i am unable to do this.

Regards

解决方案

You are probably going to annoy customers more than prevent piracy, but...

Use encryption. The key you send contains the validation period and any other information, and is encrypted using a private key. The application decodes it using the public key and checks the content. The content is the customer ID plus the expiry date and any other info. Because the private key is the encryption key and never seen by the customer, it doesn''t matter if he reverse engineers your app - he still can''t generate a valid expiry key.


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

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