如何获取HASP密钥信息? [英] How to fetch HASP Key info?

查看:652
本文介绍了如何获取HASP密钥信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一个项目(软件),我正在为每个愿意使用该软件的用户使用HASP密钥注册。为此,我从HASP Key公司购买了许可证。



我想在三个基础上检查用户登录,即用户ID,密码和HASP KEY。我不知道当我们将HASP密钥插入计算机时如何生成密钥,它会随机生成密钥或每次生成一个密钥。我需要来自HASP密钥的密钥信息。为此我联系了HASP Key所有者;他们问我可以从 HaspKey.GetInfo()方法获取所有信息,但我无法在C#.Net 2.0中获得此方法。我还包括了 Aladin 命名空间,但仍然无法获得此方法。 :(



我的软件适用于单用户和多用户,我需要这两个检查。



如果有任何人对此有任何了解(HASP),请向我提供解决方案,我将非常感谢那个人。

解决方案

Aladdin 为您提供3件事:





  1. a 万能钥匙:需要将您的特定信息写入用户密钥
  2. a 开发人员密钥:需要将可执行文件绑定到用户密钥使用 信封 方法
  3. 供应商套件:它是一个集合用于管理客户

的工具



上供应商套件您应该将主密钥添加到其数据库;当您从运行信封工具箱小程序时Vendor Suite 主窗口,该软件会询问您生成som的信息特定于主密钥的e文件(应将其插入 USB 端口)。在我的文档文件夹中,您将找到如下文件夹结构:



Aladdin \HASP SRM 4.0 \\ \\ API \ Runun\DotNet





在该文件夹中你找到一组组件与您的密钥相关;在您的项目中,您应该将正确的一个添加到其参考。您的主密钥提供了一个批次代码,一个数字(可能是5位小数),您每次制作时都应该给 Aladdin 订购用户密钥;假设您的 batck编号 xxxxx ,那么您感兴趣的组合就像 hasp_windows_xxxxx.dll hasp_windows_x64_xxxxx.dll (正确的引用取决于项目的目标平台)。



最后,从 Vendor Suite 主窗口,您可以运行 ToolBox 应用程序:它为您提供了文档和代码片段可以粘贴你的软件。



我希望这可以帮到你...



Sauro


I am making a project (software) in which i am using a HASP key registration for every user who will be willing to use the software. For this I have bought a license for this from HASP Key company.

I want to keep a check on the login of user on three basis i.e., "USER ID", "PASSWORD" and "HASP KEY". I don''t know that how the key is generated when we insert the HASP key into the computer means, it generates it randomly or generates a single key every time. I need this Key information from the HASP key. For this I contacted the HASP Key owners; they asked me that I can get all information from the HaspKey.GetInfo() method but I am not able to get this method in C#.Net 2.0. I have also included the Aladin namespace but still not able to get this method. :(

My software is for Single User and for Multi-User and I need this check for both.

If anyone out there have any knowledge on this (HASP) then kindly provide me a solution to it, I would be very grateful to that person.

解决方案

Aladdin provide you with 3 things:


  1. a Master Key: it is needed to write your specific informations into User Keys
  2. a Developer Key: it is needed to bind your executables to the User Keys using the Envelope method
  3. the Vendor Suite: it is a collection of tools to administer your Keys and customers



On the Vendor Suite you should add your Master Key to its database; when you run the Envelope or ToolBox applet from the Vendor Suite main window, the software ask you about generating some files specific for your Master Key (it should be plugged onto an USB port). Inside My Documents folder you''ll find a folder structure like the one below:

Aladdin\HASP SRM 4.0\API\Runtime\DotNet


Inside that folder you''find a set of assemblies related to your key; in your project you should add the right one to its references. Your Master Key is provided with a batch code, a number (probably 5 decimal digits) that you should give to Aladdin each time you make an order for User Keys; assume that your batck number is xxxxx, then the assembiles you are interested on are something like hasp_windows_xxxxx.dll and hasp_windows_x64_xxxxx.dll (the right one to be referenced depends on the target platform of your project).

Finally, from the Vendor Suite main window, you can run the ToolBox application: it give you documentation and code snippets that you can paste in your software.

I hope this could help you...

Sauro


这篇关于如何获取HASP密钥信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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