Reputation: 333
I'm trying to build it with Delphi Tokyo, and when I try to encrypt the database I'm getting the message:
- Error loading plugin cryptdb.dll
- Module {FIREBIRDDIR}\plugins\cryptdb.dll does not contain plugin cryptdb.dll type 9
My steps:
Any ideas what I'm doing wrong?
Upvotes: 1
Views: 599
Reputation: 1
You must change this line do match you dll file. In your case:
pluginManager.registerPluginFactory(IPluginManager.TYPE_DB_CRYPT, 'cryptdb', factory);
Upvotes: 0
Reputation: 700
Now that I've verified what's in my Notes still works. Change names as needed
Add to plugins.conf:
Plugin = CRYPTDB {
Module = $(dir_plugins)/cryptDbPlugIn
}
To encrypt the initial db:
firebird>isql localhost:"..\db\UDFEncr.FDB" -user SYSDBA -pass masterkey
SQL> alter database encrypt with cryptDb key nada;
The Firebird.pas file that came with the snapshot back in July did not match the snapshot. I had to compiler generate it from Master.
URL to GitHub for generated Firebird.pas
Upvotes: 0
Reputation: 108941
As pointed out by Dimitry on the firebird-support mailing list, the name of the plugin is cryptdb
, not cryptdb.dll
.
Instead you need to use
alter database encrypt with cryptdb;
Upvotes: 2