"Failed to encrypt a string." error when saving connection information

Problem

On Windows, you may see the following error when saving connection information such as a database password in Exploratory.

Failed to encrypt a string.

Cause

Exploratory uses a program called “dpapibridge.exe” to encrypt and store information such as passwords.

This error occurs when a Windows security feature (Smart App Control, or a Device Guard / App Control policy set by your organization) blocks dpapibridge.exe from running.

Solution

If you are using a personal PC

Smart App Control in Windows 11 may be blocking the program. Please try the following steps.

  1. Open “Settings” > “Windows Update” and update Windows to the latest version.
  2. Open “Settings” > “Privacy & security” > “Windows Security” > “App & browser control”.
  3. If “Smart App Control settings” is set to “On”, change it to “Off”.
  4. Restart Exploratory and check whether the error is resolved.

Note: If Windows is up to date, you can turn Smart App Control back on from the same screen afterward.

Reference (Microsoft):

If your PC is managed by your company or school

Your organization’s security policy (Device Guard / App Control) may be blocking the program. Since you cannot change this setting yourself, please ask your system administrator to allow the following file to run.

C:\Program Files\Exploratory\external\DPAPIbridge\dpapibridge.exe

Even on a personal PC, your organization’s policy may apply if a work or school account is registered under “Settings” > “Accounts” > “Access work or school”.

Reference (Microsoft, for administrators):