December 14, 2023 Update:
256 byte enhanced version of AES encryption is available.
- Advanced Encryption Standard, AES
- RC2
- Triple DES, TDES
There are two ways we can do this, set an encryption password within a program and use that, or give the password with every insert or update. My preference is the first scenario.
Before I start encrypting data, I need a DDL table in which to put it all:
01 CREATE OR REPLACE TABLE MYLIB.TABLE1 02 (UNENCRYPTED VARCHAR(10), 03 TYPE_AES VARCHAR(128) FOR BIT DATA, 04 TYPE_RC2 VARCHAR(128) FOR BIT DATA, 05 TYPE_TDES VARCHAR(128) FOR BIT DATA, 06 PRIMARY KEY(UNENCRYPTED)) 07 ON REPLACE DELETE ROWS ; |



