Delphi dfm 编译器错误

发布于 2024-09-30 07:00:45 字数 229 浏览 2 评论 0原文

所有编译的exe都可以反编译(但有一些困难) 但是delphi应用程序表单在exe中保存为dfms,可以很容易地看到(使用reshacker)(太容易了)我可以克服这些问题吗,首先我想到将dfm数据复制到oncreate过程,这样我就可以隐藏我的表单信息。

告诉我一个好的解决方案,

我不喜欢使用压缩器

,而且我的应用程序有点大,所以我无法将资源一一移植到 dll 中。我需要一个有效的解决方案。

All exes compiled can be decompiled (but with some hardship )
but delphi application forms are saved as dfms inside exe which can be seen easily (with reshacker) (soooo easily ) can i overcome these problems ,first i thought of copying dfm data to oncreate procedure so i can hide my form information .

tell me a good solution for this ,

i do not like to use compressors

and my application is bit large so i cant port resourese one by one to a dll. i need an effective solution.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

地狱即天堂 2024-10-07 07:00:45

.dfm 文件在链接到最终 PE 文件时不会存储为 txt。它们被转换为标记的二进制格式,并放入 RCDATA Windows 资源中。对于图像,它们存储为原始二进制文件。在构建应用程序时,.dfm 文件可以存储为文本或二进制文件(右键单击表单设计器,可以选择其中之一)。这仅影响 .dfm 文件本身的格式。一旦链接到最终的二进制文件中,它对其格式的影响为零。

您可以尝试将图像转换为常量数组(有许​​多工具可以读取二进制文件并以各种语言格式写出数组 decl)并将其用作包含文件。另一件事是使用单向算法(如 RSA 或 PGP)对图像进行加密。这不会阻止某人解密图像,但会阻止某人替换它,因为他们没有私钥。

.dfm files are not stored as txt when they're linked into the final PE file. They are converted to a tagged binary format that is placed into an RCDATA Windows resource. For the images, they are stored as the raw binary. While building your application, the .dfm files can be stored as text or binary (right click the form designer and there is a selection for choosing one or the other). This only affects the format of the .dfm file itself. It has zero affect on its format once it is linked into your final binary.

You can try to convert the images to constant arrays (there are many tools that will read a binary and write out an array decl in various language formats) and use it as an include file. Another thing is to encrypt the images using a one-way algorithm like RSA or PGP. This won't keep someone from decrypting the image, but it will keep someone from replacing it since they won't have the private key.

離人涙 2024-10-07 07:00:45

如果这是为了保护您的应用程序图像,您已经处于失败的一方:

https://stackoverflow.com/questions/455623/how-can-i-prevent-users-from-takeing-screenshots-of-my-application-window

它始终是可以制作正在运行的应用程序的屏幕截图。

If this is about protecting your applications images you are already on the losing side:

https://stackoverflow.com/questions/455623/how-can-i-prevent-users-from-taking-screenshots-of-my-application-window

It is always possible to make screenshots of a running application.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文