Encrypting column data
You can store sensitive data in encrypted format.
About this task
Before you set the encryption password and encrypt data, you must be sure the encrypted data can fit in the column.
To encrypt a column:
Procedure
Results
Use the DECRYPT_BINARY(), and DECRYPT_CHAR() functions to query encrypted data. For an example of querying encrypted data, see Example showing how to query encrypted data.
See the HCL OneDB™ Guide to SQL: Syntax for more information about:
- The SET ENCRYPTION PASSWORD statement and the syntax to use to specify the password and the hint
- The ENCRYPT and DECRYPT functions