I've been playing around with Firebird 3.04 encryption plug-in option, now FB comes with a basic example (DbCrypt.pas) that just does a simple xor to encrypt/decrypt. I have compiled this DLL and it it working fine. The problem i have is that the source for the library that handles the passing keys to the DbCrpt.all is written in C++, now my C++ skills are on the scale of lacking to none existent, i'm in the process of porting it line by line to pascal and getting nowhere fast, does anybody know of a pascal port of CrpytKeyHolder.cpp that is shipped with FB or any tips? i'm very much out of my depth.