Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Solved] Encrypted column in DB2

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Solved] Encrypted column in DB2
 Login/Join
 
Member
posted
I have a column in DB2 that is encrypted. Other than using a pass-thru SQL, I have not been able to figure out how to decrypt this column. I assume you would specify the encryption key on the fieldname in the metadata but I have not been able to find any information on this.

Any help would be appreciated.

Thanks,
John

This message has been edited. Last edited by: jrh,


WebFOCUS 7.7
Windows, All Outputs
 
Posts: 12 | Location: Columbia Tennessee | Registered: June 13, 2012Report This Post
Expert
posted Hide Post
It sounds like it would come thru if you had a different level of access, one which decrypts during a read. I've encountered something like that a while (years) ago. What's your DBAs have to say about that (decrypt on read access)?
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Member
posted Hide Post
Doug,

Thanks for your response.

Decrypting the column on DB2's side is not a problem. If I do a pass-thru SQL and give it the encryption key in the select statement, it decrypts fine. However, in this case I have to have the encryption key. We do not want the developers to have this key. My plan was to have the encryption key in the metadata and then I could encrypt the .mas file. Maybe my assumption is not valid. Is it possible to specify an encryption key in the metadata.

Thanks,
John


WebFOCUS 7.7
Windows, All Outputs
 
Posts: 12 | Location: Columbia Tennessee | Registered: June 13, 2012Report This Post
Member
posted Hide Post
Beginning with version 7.7.03, a new function was added allowing for the insertion of native SQL expressions into a DB2 query. The function is 'SQL'.

Here is an example of how it is used in the select:

DEFINE FILE QUOTE_NIN_INFO
TSN/A124 = SQL.DECRYPT_CHAR(QNIN_SSN, 'ssn_encrypt' );
END

Here is how it might be used in a WHERE statement:

WHERE SQL.DECRYPT_CHAR(QNIN_SSN, 'ssn_encrypt' ) LE '2'

Thanks,
John


WebFOCUS 7.7
Windows, All Outputs
 
Posts: 12 | Location: Columbia Tennessee | Registered: June 13, 2012Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Solved] Encrypted column in DB2

Copyright © 1996-2020 Information Builders