<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to read and write encrypted values on Postgresql with Talend Data Integration in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-read-and-write-encrypted-values-on-Postgresql-with-Talend/m-p/2295384#M68166</link>
    <description>&lt;P&gt;So I solved it by myself! It was easier than I expected... (such a noob)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;To read decrypted you just have to change the select query, for example:&lt;/P&gt; 
&lt;P&gt;SELECT pgp_sym_decrypt( &lt;SPAN&gt;[DB]&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;[SCHEMA]&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;[TABLE].[FIELD]&lt;/SPAN&gt;,[ENCRYPTION_KEY]) as [FIELD_NAME],&lt;BR /&gt;FROM &lt;SPAN&gt;[DB]&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;[SCHEMA]&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;[TABLE]&lt;/SPAN&gt;;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;[DB]&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;[SCHEMA]&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;[TABLE]&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;To insert is a little bit "trickier" but also quite simple... In your tPostgresqlOutput, go to "Advanced settings" and use Additional columns and replace the ones you want to encrypt with the expression&amp;nbsp;"pgp_sym_encrypt( ? ,[ENCRYPTION_KEY])"&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ADDITIONAL.png" style="width: 859px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LsOQ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151157i6BA0831016E26A85/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LsOQ.png" alt="0683p000009LsOQ.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Sorry for the simple question.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Ricardo&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2018 15:09:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-02-28T15:09:36Z</dc:date>
    <item>
      <title>How to read and write encrypted values on Postgresql with Talend Data Integration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-read-and-write-encrypted-values-on-Postgresql-with-Talend/m-p/2295383#M68165</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new at Talend Data Integration and now I'm facing the challenge to read and write data from a Postgresql DB which is encrypted with the database encryption function pgp_sym_encrypt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I read and wirte values from this DB?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ricardo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 10:33:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-read-and-write-encrypted-values-on-Postgresql-with-Talend/m-p/2295383#M68165</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-28T10:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to read and write encrypted values on Postgresql with Talend Data Integration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-read-and-write-encrypted-values-on-Postgresql-with-Talend/m-p/2295384#M68166</link>
      <description>&lt;P&gt;So I solved it by myself! It was easier than I expected... (such a noob)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;To read decrypted you just have to change the select query, for example:&lt;/P&gt; 
&lt;P&gt;SELECT pgp_sym_decrypt( &lt;SPAN&gt;[DB]&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;[SCHEMA]&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;[TABLE].[FIELD]&lt;/SPAN&gt;,[ENCRYPTION_KEY]) as [FIELD_NAME],&lt;BR /&gt;FROM &lt;SPAN&gt;[DB]&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;[SCHEMA]&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;[TABLE]&lt;/SPAN&gt;;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;[DB]&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;[SCHEMA]&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;[TABLE]&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;To insert is a little bit "trickier" but also quite simple... In your tPostgresqlOutput, go to "Advanced settings" and use Additional columns and replace the ones you want to encrypt with the expression&amp;nbsp;"pgp_sym_encrypt( ? ,[ENCRYPTION_KEY])"&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ADDITIONAL.png" style="width: 859px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LsOQ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151157i6BA0831016E26A85/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LsOQ.png" alt="0683p000009LsOQ.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Sorry for the simple question.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Ricardo&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 15:09:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-read-and-write-encrypted-values-on-Postgresql-with-Talend/m-p/2295384#M68166</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-28T15:09:36Z</dc:date>
    </item>
  </channel>
</rss>

