If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > data_encription

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-03-03, 14:07
nagasurir nagasurir is offline
Registered User
 
Join Date: Nov 2003
Location: California,USA
Posts: 71
data_encription

Can we (if YES, How) modify/alter the table definition to convert a column datatype to the encripted form say

ssn varchar(124) for bit data);
set encryption password = 'Ben123';

from the existing definition of that column

ssn varchar(124)

Response is highly appriciated...
Reply With Quote
  #2 (permalink)  
Old 12-03-03, 14:22
GertK GertK is offline
Registered User
 
Join Date: Nov 2003
Location: Netherlands
Posts: 96
Re: data_encription

Quote:
Originally posted by nagasurir
Can we (if YES, How) modify/alter the table definition to convert a column datatype to the encripted form say

ssn varchar(124) for bit data);
set encryption password = 'Ben123';

from the existing definition of that column

ssn varchar(124)

Response is highly appriciated...
DB2 v7.2 introduced the encrypt/decrypt functions.

Example from the V8 information Center:

SET ENCRYPTION PASSWORD = 'Ben123';
INSERT INTO EMP(SSN) VALUES ENCRYPT('289-46-8832');
SELECT DECRYPT_CHAR(SSN)
FROM EMP;

Hope this helps.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On