【发布时间】:2018-05-08 21:11:58
【问题描述】:
我正在尝试使用 Delphi Tokyo 构建它,当我尝试加密数据库时,我收到了以下消息:
- 加载插件 cryptdb.dll 时出错
- 模块 {FIREBIRDDIR}\plugins\cryptdb.dll 不包含插件 cryptdb.dll 类型 9
我的步骤:
- 已安装 Firebird 3.0.3 (NNF)
- 将 {FIREBIRDDIR}\examples\dbcrypt\crypdb.pas 重命名为 cryptdb.dpr,然后构建
- 已将 cryptdb.dll 复制到 {FIREBIRDDIR}\plugins
- isql employee2.fdb -user sysdba -pass masterkey
- 使用“cryptdb.dll”更改数据库加密;
- 不高兴,出现令人讨厌的错误消息。
任何想法我做错了什么?
【问题讨论】:
-
假设您已经设置了 plugins.conf 和 firebird.conf 并且在 registerPluginFactory 和 firebird.conf 条目之间匹配了大小写(2017 年 7 月需要),那么这对我有用:SQL> alter database encrypt with cryptDb key纳达;
-
您使用的是 64 位还是 32 位 Firebird,您将 DLL 编译为 64 位还是 32 位?
-
我也希望您知道 crypt-plugin 示例是一个玩具示例:它应用了一个非常容易破解的 XOR 算法,因此您不应该在生产中使用该示例并期望它提供任何保护任何东西。
-
@MarkRotteveel:32 位,是的,我只想要“hello world”
-
@FredS:我只是在 plugins.conf 中执行 ctrl-c/ctrl-v 将 UDR 更改为 CRYPTDB。 firebird.conf 上没有任何内容。你能发布你的confs吗?
标签: delphi encryption firebird