|
Yes, now that you have looked into the future and answered 1/2 of my next question, that would have been on the RPG-L, with sample code. The other half will be, how do you handle the password so that it isn't handed to the morons along with the tape? Put it in the source, compile, blank it in the source... Roger On 3/19/2007 12:32 PM, rob@xxxxxxxxx wrote:
You mean like:CREATE TABLE ROB/VICKER(MYKEY INT AS IDENTITY, MYSSN CHAR(32) for bit data not null PRIMARY KEY (MYKEY)) Table VICKER created in ROB. // Notice the size on MYSSN? // Length of data + 16 bytes for encryption + 5 bytes to next 8 byte boundary.set encryption password = 'Ben123' INSERT INTO ROB/VICKER (MYSSN)VALUES(ENCRYPT_TDES('289-46-8832')) 1 rows inserted in VICKER in ROB.select * from rob/vickerSELECT statement run complete. ....+....1....+....2....+....3....+....4....+... MYKEY MYSSN 1 Ÿ Nµ¾/Ø&?Ú| ðygÃ=üäŸ S à L¤I ******** End of data ********select mykey, decrypt_char(myssn) as DisplaySSNfrom rob/vicker ....+....1....+....2....+....3 MYKEY DISPLAYSSN 1 289-46-8832 ******** End of data ******* http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/db2/rbafzmstscale.htm#scaencrypt http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/db2/rbafzmstscale.htm#scaencrypttdes http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/db2/rbafzmstscale.htm#scadecrypt Rob Berendt
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.