Encryption Plugin for Firebird v2027R1
Encryption Plugin for Firebird v2027R1
Transparent AES-256 encryption for Firebird databases. New in v2027R1: protect an application that you cannot change. No source code, no recompilation: add one small library, or let the user type a pass phrase.
- Firebird 5.0 · 4.0 · 3.0
- Windows and Linux · x64 servers · 32- and 64-bit clients
- AES-256 · key of 32 bytes or a pass phrase
- 0 lines of application code to change
- No key on the server disk
Version v2027R1
What is new
Earlier you had to add key transfer code to each application. Now the plugin can do it for an application that stays as it is.
Encrypt the database of an application you cannot change
The client library loads the KeyHolder plugin, and the plugin takes the key from your small library KeySource.dll. The application knows nothing about encryption.
The plugin asks for the key itself
One line Prompt in the configuration, and the plugin shows its own window. You write no library and no code at all.
A pass phrase instead of a key
A person remembers a phrase. The plugin calculates the 32-byte key from it. The key is not on any disk.
Pass phrasesAlready inside HQbird
HQbird contains the server plugins, the client files and the utilities. You add the license file and one line in firebird.conf.
A working example in 10 minutes
Scripts download Firebird and the plugin, install a test server, encrypt a database and make the workstation folder. For Firebird 3.0, 4.0 and 5.0.
Try itTwo guides in four languages
The main guide and the guide for applications without source code: English, Portuguese, Polish and Russian. Examples for Lazarus, Python, PHP, Java, .NET and C++.
Read the guidesKey delivery
Six ways to send the key: select one for each program
The server does not keep the key. Each connection brings it: the application, the backup utility, the reporting program. You select the way by the type of the program.
| Way to send the key | For what | What you change |
|---|---|---|
| KeySource.dll new | an application without source code | one library near fbclient.dll; the application is not changed |
Built-in dialog (Prompt) new | a person types the key or the pass phrase | one line in KeyHolder.conf on the workstation |
| fbcrypt library | an application with source code | three function calls before the connection |
| KeyHolderStdin | gbak, nbackup, isql, gfix and scripts | the key comes from the input stream |
| Connection property | Java (Jaybird) and .NET | dbCryptConfig or cryptkey in the connection |
| File on the server | tests and the first encryption | KeyHolder.conf with the key; not for production |
- AES-256 at the page levelData, index, BLOB and generator pages are encrypted. Table names, procedure texts and trigger texts are encrypted too.
- No downtimeEncryption and decryption run in the background. Users work with the database at this time. After a server restart, encryption continues.
- No key on the serverThe key is in the server memory only while the database is open.
- Protected key exchangeThe key never goes in open form. A false plugin or a false server cannot get it, and a recorded exchange cannot be used again.
- Several keys with namesEach database can have its own key. The key name is in the database header, the key is not.
- A wrong key is refused at onceThe header keeps a hash of the key. The server checks it before it reads any page.
- Encrypted backups
gbakwrites an encrypted backup with the same key. Annbackupcopy stays encrypted. - Utilities with key support
gbak,nbackup,isqlandgfixget the key from a plugin or from the input stream. - Monitoring
MON$DATABASEshows the progress.gstat -ecounts encrypted and non-encrypted pages. - Individual client keys Firebird 5.0Each workstation or customer gets its own key. The server log shows which key connected.
- Key check hookYour library
KeyCheckergets the key name and the program path at each use of a key: for your audit log. - Recovery toolThe offline decrypt tool works with IBSurgeon FirstAID to repair a corrupted encrypted database.
Your choice
Where the key is: you decide
The farther the key is from the disk of the workstation, the harder it is to steal. The example contains four ready libraries. Variant C works with a pass phrase.
No variant protects against a person with full access to a running workstation. Encryption protects files: the database, its copies and backups.
Licensing
One license for all your applications
Initial purchase
US$2,799
- Includes 1 year of support and upgrades
- Then optional annual support for US$599
- Unlimited redistribution with the business applications of your company
- Full plugin source code and pre-built binaries
gbak,nbackup,gfixandisqlwith support for encrypted databases- Decrypt tool; FirstAID license included
- Examples: Delphi, Lazarus, Python, PHP, Java, .NET, C++
Upgrade
US$1,299
- Includes 1 year of support and upgrades
- Then optional annual support for US$599
- For owners of an earlier version of the plugin
- The full v2027R1 package: source code, pre-built binaries, utilities and examples
Try before you buy: the demo package contains a trial license.
What encryption does not do
- It does not protect data in the server memory. An administrator of a running server can read it.
- It does not protect data in the network. Use the Firebird parameter
WireCryptfor that. - It does not replace Firebird users and rights: a user password checks rights, it does not open the file.
- A lost key cannot be restored. Keep a copy of the key apart from the server and from the backups.