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
The key source on the workstation gives the key to the client KeyHolder plugin; the plugin sends it to the server at each connection; the server keeps no key and stores only encrypted pages WORKSTATION: THE APPLICATION IS NOT CHANGED SERVER: KEEPS NO KEY Your applicationno source code, no recompilation fbclient + KeyHolder pluginfrom the plugin package or from HQbird Key sourceKeySource.dll · built-in dialog · pass phrase Firebird serverKeyHolder gets the key, DbCrypt uses itAES-256 · the key is only in memory Database filedata, index, BLOB and generator pages:encrypted on the disk BACKUPS gbak backup: encrypted with the same keynbackup copy: stays encrypted A stolen file, disk or backupcannot be read without the key RSA
the key: each connection brings it, the exchange is protected with RSA pages: decrypted in the server memory, encrypted on the disk and in backups

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.

New · no code changes

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.

How it works
New · built-in dialog

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.

The dialog
New · pass phrase

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 phrases
New · HQbird

Already inside HQbird

HQbird contains the server plugins, the client files and the utilities. You add the license file and one line in firebird.conf.

Versions and platforms
New · ready example

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 it
New · documentation

Two 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 guides

Key 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 keyFor whatWhat you change
KeySource.dll newan application without source codeone library near fbclient.dll; the application is not changed
Built-in dialog (Prompt) newa person types the key or the pass phraseone line in KeyHolder.conf on the workstation
fbcrypt libraryan application with source codethree function calls before the connection
KeyHolderStdingbak, nbackup, isql, gfix and scriptsthe key comes from the input stream
Connection propertyJava (Jaybird) and .NETdbCryptConfig or cryptkey in the connection
File on the servertests and the first encryptionKeyHolder.conf with the key; not for production

Basic functions

Everything you expect from database encryption

Technical overview
  • 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 backupsgbak writes an encrypted backup with the same key. An nbackup copy stays encrypted.
  • Utilities with key supportgbak, nbackup, isql and gfix get the key from a plugin or from the input stream.
  • MonitoringMON$DATABASE shows the progress. gstat -e counts 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 KeyChecker gets 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.

AIn the library codeThe simplest way. Protects against theft of the database file, the server and the backups.
BIn a file, for example on a removable diskTake the disk away, and new connections are not possible.
CIn the memory of a tray programA person types the key or the pass phrase one time. Nothing is on the disk. The program can forget the key after 15 minutes, after 1 hour or at exit.
DAt a key service in your networkThe library asks the service with a REST request and a token. You control who gets the key.

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, gfix and isql with support for encrypted databases
  • Decrypt tool; FirstAID license included
  • Examples: Delphi, Lazarus, Python, PHP, Java, .NET, C++
Purchase

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
Purchase upgrade

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 WireCrypt for 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.