Informix Error -26001: The encryption/decryption password is not set.
Cause and resolution
The encryption/decryption password is not set.
Provide an encryption password in the argument list to the encryption/decryption functions or use the "SET ENCRYPTION PASSWORD" statement.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26001 fires when an IDS built-in encryption/decryption function is called without a password — per the official guidance.
- No encryption password supplied in the function's argument list, and no
SET ENCRYPTION PASSWORDstatement in effect, per the official guidance — the direct, only cause.
Solutions / Resolution
- Provide an encryption password in the argument list to the encryption/decryption function, per the official guidance, or
- Use the
SET ENCRYPTION PASSWORDstatement first, per the official guidance.
Examples
A missing password
SELECT DECRYPT_CHAR(secret_col) FROM accounts;
-- -26001: no password argument, and no SET ENCRYPTION PASSWORD in effect
Corrected
SET ENCRYPTION PASSWORD 'my password';
SELECT DECRYPT_CHAR(secret_col) FROM accounts;
Diagnostic Checks
- Check whether the statement supplies a password argument or relies on
SET ENCRYPTION PASSWORD, and confirm one of the two is actually in effect.
Related Errors / Related Topics
- -26002 — "Invalid encryption password data type." A related password-validity error, on the password's data type rather than it being missing.
- -26003 — "The data must be encrypted with a password length between 6 and 128." A related password-validity error, on the password's length rather than it being missing.
An encryption/decryption function was called with no password available — supply one as an
argument or via SET ENCRYPTION PASSWORD.