有什么办法可以建立大量的基于macid的exe文件吗 [英] Is there any way to build large no of exe files work on the basis of macid

查看:51
本文介绍了有什么办法可以建立大量的基于macid的exe文件吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个仅在一个系统中运行的桌面应用程序.它将检查系统的mac id,如果mac id相等,则它将正常工作,否则它将不工作.我收集了数百个mac id.这个想法类似于发送具有多个TO地址的一个字母内容.

i want to create a desktop application which run only in one system .it will check the mac id of the system if the mac id is equal it should work otherwise it should not.i have collection of hundreds of mac id . this idea is similar to send one letter content having several TO address

推荐答案

使用MD5哈希很容易实现.散列所有MAC ID,并在应用程序中加一些盐将其分发.要进行身份验证,请使用系统的MAC ID,对其进行哈希处理,然后查看其是否包含在允许ID列表中.盐是这里的关键.由于身份验证需要它,因此它将被嵌入到您的应用程序中,从而容易受到黑客攻击.

一种更安全的方法是将非对称加密与私钥和公钥一起使用.使用私钥对上述方案中提到的盐进行加密.如前所述,您的应用程序将使用公钥来解密和使用盐.

最好的问候,

—MRB
That''s quite easy to achieve by using MD5 hashing. Hash all your MAC IDs and distribute them along with your application applying some salt also. To authenticate use the MAC ID of the system, hash it and see if it''s contained in the list of allowed IDs. The salt is the critical piece here. Since it''s needed for the authentication it will be embedded in your application and thusly exposed to hacking.

A more secure approach is to use asymetric cryptography with a private and a public key. Use the private key to encrypt the salt mentioned in above scenario. The public key will be used by your application to decrypt and use the salt as before mentioned.

Best Regards,

—MRB


这篇关于有什么办法可以建立大量的基于macid的exe文件吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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