且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用许可证文件保护DLL文件

更新时间:2023-11-15 11:53:04

您可能需要考虑的事情:

A couple of things you might want to consider:

检查DLL的总和。使用加密散列函数,您可以将其存储在许可证文件或DLL内部。这提供了一个验证方法来确定我的原始DLL文件是否未解除攻击,或者是否是此DLL的许可证文件。一些简单的字节交换技术可以快速地将你的哈希函数从打破的轨道中取出(因此不容易重现)。

Check sum the DLL. Using a cryptographic hash function, you can store this inside the license file or inside the DLL. This provides a verification method to determined if my original DLL file is unhacked, or if it is the license file for this DLL. A few simple byte swapping techniques can quickly take your hash function off the beaten track (and thus not easy to reproduce).

不要将哈希存储为字符串,在不同的地方将它分成无符号短片。

Don't store you hash as a string, split it into unsigned shorts in different places.

如Larry所说,MAC地址相当普遍。有很多例子可以帮助您了解代码项目,但请注意,假设这些天。

As Larry said, a MAC address is fairly common. There are lots of examples of how to get that on The Code Project, but be aware it's easy to fake these days.

我的建议,应该使用 private / public keys for license generation。

My suggestion, should be use private/public keys for license generation.

总之,攻击模式是二进制的(修改DLL文件的指令)这个,或密钥生成所以使每个许可证的用户,机器,甚至安装具体。

In short, modes of attack will be binary (modify the instructions of your DLL file) so protect against this, or key generation so make each license user, machine, and even the install specific.