如果想要保护 VBA 应用程序以制作试用(演示)版本而不是公开脚本,那么内置密码保护的安全性如何?有没有其他选择?
编辑:我在这里询问 Excel VBA。
如果想要保护 VBA 应用程序以制作试用(演示)版本而不是公开脚本,那么内置密码保护的安全性如何?有没有其他选择?
编辑:我在这里询问 Excel VBA。
您的密码安全性在很大程度上取决于所使用的办公室版本。可以破解 2007 之前的所有其他 Office 解决方案。Office 2007 需要暴力破解密码。默认加密机制是 128 位 AES。
这意味着密码的复杂性越高,越难破解。IE - 数字、特殊字符、混合大小写等。
它不是很安全,很容易用工具破解。
这段视频展示了它是如何完成的。
It is not secure. Anyone opening your document in OpenOffice will get immediate access to the code. Open office basically ignores any password protection.
The OO folks have a very good document describing the Excel file format. Section 4.18 (pg. 114) starts the discussion on how protection is handled. Onorio's suggestion on using an add-in will slow someone down, but will not stop a determined hacker.
It's sort of like locking the door to your house. It won't keep out someone determined to get in, but does 'keep honest people honest'.
如果您真的想保护源代码,这可能是您的最佳选择。对于那些可能不想关注该链接的人,这是一篇关于为 Excel 2007 开发 XLL 加载项的文章。Xll 是用于 MS Excel 的专用 dll。
完全同意 DaveParillo,即使在 2010/13 版本中,安全性也很差。保护文件的唯一方法是使用真正的加密(AES 128 位)输入打开密码,选项“加密文档”给出相同的结果。所有其他人: