简体   繁体   English

申请许可

[英]License for application

Using mysql, c#.net, Java Script 使用mysql,c#.net,Java Script

I have the web application, i want to create a user limit for my application which means i have to use some license for the users.... 我有web应用程序,我想为我的应用程序创建一个用户限制,这意味着我必须为用户使用一些许可证....

For Example 例如

customer need the application for 3 users, so application will work for 3 users, if customer need to extend the user from 3 to 10 means, i have to provide a license for 10 users... 客户需要3个用户的应用程序,因此应用程序将适用于3个用户,如果客户需要将用户从3个扩展到10个意味着,我必须为10个用户提供许可证...

How to create a license for the application, i have to use RSA algorithm for generating a key? 如何为应用程序创建许可证,我必须使用RSA算法生成密钥?

Can any one provide some idea or sample code 任何人都可以提供一些想法或示例代码

Need Help 需要帮忙

There is a large difference between a license key and a license agreement. license keylicense agreement.之间存在很大差异license agreement. A license key is something used to make it harder to copy software, since you are deploying a web-app, this shouldn't be much of an issue for you. 许可证密钥是用于使复制软件更加困难的东西,因为您正在部署Web应用程序,这对您来说应该不是什么大问题。 A license agreement is a legal document that users of your application must agree to. 许可协议是您的应用程序用户必须同意的法律文档。 I'm guessing you are interested in the first. 我猜你对第一个感兴趣。

In a web application, you should implement a login system, and only provide username/passwords for users who have paid you. 在Web应用程序中,您应该实现登录系统,并且仅为已付费的用户提供用户名/密码。 If as Kobi mentioned, you have a public API that you'd like to license to other users, I recommend you simply give them a uinque GUID ( System.Guid.NewGuid(); ) and then require that GUID as a parameter for every API call. 如果像Kobi提到的那样,你有一个公共API,你想要许可给其他用户,我建议你只需给他们一个uinque GUID( System.Guid.NewGuid(); )然后要求GUID作为每个参数API调用。 Then, you can check to see if the GUID is associated with a paid account, if so, let it fly, if not abort the transaction with an error code. 然后,您可以检查GUID是否与付费帐户相关联,如果是,则让它飞行,如果不是,则使用错误代码中止该事务。 I would recommend using an HTTPS connection for this. 我建议使用HTTPS连接。

If, you are trying to sell your web-application to users, so they can host it on their own server, a license key would be a good idea, you might want to add it as a parameter in <appSettings> under web.config. 如果您尝试将Web应用程序出售给用户,以便他们可以在自己的服务器上托管,许可证密钥是个好主意,您可能希望将其作为参数添加到web.config下的<appSettings> There are many methods for generating license keys, but in at their most simple they involve generating random numbers until a specific check-sum is met. 有许多方法可用于生成许可证密钥,但最简单的方法是生成随机数,直到满足特定的校验和。 For example, 1253-38 (1+2 = 3, 5+3 = 8). 例如,1253-38(1 + 2 = 3,5 + 3 = 8)。 That is a very simple key that would be easy to crack, but you could come up with a more indepth check-sum if you needed. 这是一个很容易破解的非常简单的密钥,但如果需要,你可以提出一个更深入的校验和。

IMO, Nate Boss has covered the most of basic stuff. IMO,Nate Boss已经涵盖了大部分基本内容。 Now looking at your requirement 现在看看你的要求

customer need the application for 3 users, so application will work for 3 users, if customer need to extend the user from 3 to 10 means, i have to provide a license for 10 users... 客户需要3个用户的应用程序,因此应用程序将适用于3个用户,如果客户需要将用户从3个扩展到10个意味着,我必须为10个用户提供许可证...

Do you have named users? 你有名字用户吗? For example, will each user from customer will have different user name/password? 例如,来自客户的每个用户是否会有不同的用户名/密码? If yes then all you need to do is to have required number of user accounts generated for the customer. 如果是,那么您需要做的就是为客户生成所需数量的用户帐户。 Now user account generation is done by you then you don't really have to do anything special. 现在,用户帐户生成由您完成,那么您不需要做任何特殊的事情。 However, if you want to allow having new user registration by customer himself then you need to have licensing logic on registration page. 但是,如果您希望允许客户自己进行新的用户注册,那么您需要在注册页面上拥有许可逻辑。 The basic problem would be to identify the customer and then validate against your inventory to see if the customer has any user account left. 基本问题是识别客户,然后根据您的库存进行验证,以查看客户是否还有任何用户帐户。 Customer identification can be done in many ways - digital certificate, a registration code given by you (can be random number or can be salted customer id encrypted by your PK) etc. 客户身份识别可以通过多种方式完成 - 数字证书,您提供的注册码(可以是随机数字,也可以是您的PK加密的客户ID)等。

In case you don't have named users then the problem would be how many concurrent logins customer can make? 如果您没有命名用户,那么问题是客户可以进行多少并发登录? This is as simple as checking against your inventory. 这就像检查您的库存一样简单。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Windows应用程序的许可证密钥生成 - License Key generation for Windows Application C# 桌面应用程序许可证 - License for C# desktop application C#Windows应用程序中基于许可证的配置 - License Based Configuration in C# Windows Application ActiveReports 7 - 应用程序许可证是否到期? 如果是的话,何时? - ActiveReports 7 - Does an application license expire? If so, when? 如何验证 C# WPF 应用程序中每个菜单项的许可证 - How to verify License for each Menu Item in C# WPF Application 我在.NET Core应用程序中的哪里放置许可证信息(.licx)? - Where do I put license info (.licx) in a .NET Core application? 将C#应用程序许可证信息和其他凭据存储在App数据文件夹中 - Storing c# application license info and other credentials in App data folder 在哪里可以获得C#.NET Windows应用程序中许可证密钥生成的示例? - Where can I get examples for the license key generation in a C#.NET Windows application? 由多个 Autofac 组件共享的应用程序范围初始化的最佳实践? (在这种情况下,Aspose 许可证。) - Best practice for application-wide initialization shared by several Autofac components? (Aspose license in this case.) IntelliLock的许可证文件(license.license)无效 - License file (license.license) of the IntelliLock is not working
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM