
July 25th, 2009, 03:34 AM
|
|
Registered User
|
|
Join Date: Jul 2009
Posts: 4
Time spent in forums: 57 m 16 sec
Reputation Power: 0
|
|
Quote: | Originally Posted by ghostlord Hi guys,
I am a newbie to DB2.
My current project need some sort of encryption on user login password in user table to prevent from anybody seeing it include db2 administrator. Is there a password "type" in DB2 so that the password can be encrypted automatically?
(DB2 9.5 and winXP for test env, DB2 9.5 and AIX for production)
Any suggestions are appreciated! |
see below example how to encrypt the data:
------------------------------------------
CREATE TABLE EMP (SSN VARCHAR(24) FOR BIT DATA);
SET ENCRYPTION PASSWORD = 'Ben123';
INSERT INTO EMP(SSN) VALUES ENCRYPT('289-46-8832');
select decrypt_char(ssn) from emp
|