March 2012
Intermediate to advanced
442 pages
9h 31m
English
Data encryption becomes very crucial in handling confidential data. Data can be encrypted during transit and at storage level. In this recipe, we will focus on encrypting the stored data. DB2 provides various functions that can be used to encrypt and decrypt the data. These functions can be embedded in any host language, just like a regular function or statement. Data is encrypted into BIT DATA, so before we can use encryption, we should have the target table designed to support the encrypted data.
We will use DB2 encryption functions to encrypt and decrypt the data in a test table. The following statement creates a test table that we will use in our recipe:
CREATE TABLE TEST_ENCRYPTION (ID INTEGER, ...Read now
Unlock full access