<?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: [resolved] String to SHA-256 in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-String-to-SHA-256/m-p/2240614#M28048</link>
    <description>&lt;P&gt;Hi @&lt;A href="https://community.talend.com/s/profile/00539000006yr8WAAQ" alt="https://community.talend.com/s/profile/00539000006yr8WAAQ" target="_blank"&gt;DamienBlondel&lt;/A&gt;&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;Did you find the solution to this, I'm getting same issue with leading zeros, If you find the solution could you please help me on this.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Apr 2022 16:35:29 GMT</pubDate>
    <dc:creator>nar</dc:creator>
    <dc:date>2022-04-05T16:35:29Z</dc:date>
    <item>
      <title>[resolved] String to SHA-256</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-String-to-SHA-256/m-p/2240609#M28043</link>
      <description>&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Hello! &amp;nbsp;&lt;BR /&gt;I'm new to java, &amp;nbsp;I don't konw if talend have a component to &amp;nbsp;convert a string to SHA-256? &amp;nbsp;&lt;BR /&gt;Or how could we write a code routines in order to use it? &amp;nbsp;&lt;BR /&gt;I have tried download the custom component &amp;nbsp;tFileDigester &amp;nbsp;and install in talend, but it can't find in palette.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Could you help me please?&amp;nbsp;&lt;BR /&gt;Thanks to all&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Mon, 11 Jan 2016 17:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-String-to-SHA-256/m-p/2240609#M28043</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-11T17:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] String to SHA-256</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-String-to-SHA-256/m-p/2240610#M28044</link>
      <description>&lt;P&gt;Hi&amp;lt;BR /&amp;gt;You need to hard code to convert a string to SHA-256.&amp;amp;nbsp;&amp;lt;BR /&amp;gt;Hope the following articles are helpful for you.&amp;lt;BR /&amp;gt;&amp;lt;A href="&lt;A href="https://community.talend.com/s/article/Create-a-user-routine-and-call-it-in-a-Job-0hHmU" alt="https://community.talend.com/s/article/Create-a-user-routine-and-call-it-in-a-Job-0hHmU" target="_blank"&gt;https://community.talend.com/s/article/Create-a-user-routine-and-call-it-in-a-Job-0hHmU&lt;/A&gt;" target="_blank" rel="nofollow noopener noreferrer"&amp;gt;Creating a user routine and call it in a job.&amp;amp;nbsp;&amp;lt;/A&amp;gt;&amp;lt;BR /&amp;gt;&amp;lt;A href="&lt;A href="https://help.talend.com/pages/viewpage.action?pageId=190513200" alt="https://help.talend.com/pages/viewpage.action?pageId=190513200" target="_blank"&gt;https://help.talend.com/pages/viewpage.action?pageId=190513200&lt;/A&gt;" target="_blank" rel="nofollow noopener noreferrer"&amp;gt;Install custom component to Talend Studio&amp;lt;/A&amp;gt;.&amp;amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 01:16:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-String-to-SHA-256/m-p/2240610#M28044</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-15T01:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] String to SHA-256</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-String-to-SHA-256/m-p/2240611#M28045</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi&lt;BR /&gt;You need to hard code to convert a string to SHA-256.&amp;nbsp;&lt;BR /&gt;Hope the following articles are helpful for you.&lt;BR /&gt;&lt;A href="https://help.talend.com/pages/viewpage.action?pageId=190513247" target="_blank" rel="nofollow noopener noreferrer"&gt;Creating a user routine and call it in a job.&amp;nbsp;&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://help.talend.com/pages/viewpage.action?pageId=190513200" target="_blank" rel="nofollow noopener noreferrer"&gt;Install custom component to Talend Studio&lt;/A&gt;.&amp;nbsp;&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Thanks shong, i found the code and it worked. &amp;nbsp;I'd like to share here for others if needed.&amp;nbsp; 
&lt;BR /&gt;package routines; 
&lt;BR /&gt;import java.security.MessageDigest; 
&lt;BR /&gt;import java.math.BigInteger; 
&lt;BR /&gt;public class SHA { 
&lt;BR /&gt; public static String getMD5HashedPassword(String password, String salt) { 
&lt;BR /&gt; &amp;nbsp; &amp;nbsp; String sTH; 
&lt;BR /&gt; &amp;nbsp; &amp;nbsp; if(password == null) { 
&lt;BR /&gt; &amp;nbsp; &amp;nbsp; if(salt == null) sTH = ""; 
&lt;BR /&gt; &amp;nbsp; &amp;nbsp; else sTH = salt; 
&lt;BR /&gt; &amp;nbsp; &amp;nbsp; } 
&lt;BR /&gt; &amp;nbsp; &amp;nbsp; else { 
&lt;BR /&gt; &amp;nbsp; &amp;nbsp; if(salt == null) sTH = password; 
&lt;BR /&gt; &amp;nbsp; &amp;nbsp; else sTH = password + salt; 
&lt;BR /&gt; &amp;nbsp; &amp;nbsp; } 
&lt;BR /&gt; &amp;nbsp; &amp;nbsp; 
&lt;BR /&gt; &amp;nbsp; &amp;nbsp; try { 
&lt;BR /&gt; &amp;nbsp; &amp;nbsp; MessageDigest md5 = MessageDigest.getInstance("SHA-256"); 
&lt;BR /&gt; &amp;nbsp; &amp;nbsp; md5.update(sTH.getBytes()); 
&lt;BR /&gt; &amp;nbsp; &amp;nbsp; BigInteger hash = new BigInteger(1, md5.digest()); 
&lt;BR /&gt; &amp;nbsp; &amp;nbsp; return hash.toString(16); 
&lt;BR /&gt; &amp;nbsp; &amp;nbsp; }&amp;nbsp; 
&lt;BR /&gt; &amp;nbsp; &amp;nbsp; catch (Exception e) { 
&lt;BR /&gt; &amp;nbsp; &amp;nbsp; return null; 
&lt;BR /&gt; &amp;nbsp; &amp;nbsp; } 
&lt;BR /&gt; &amp;nbsp; &amp;nbsp;} 
&lt;BR /&gt;}</description>
      <pubDate>Tue, 26 Jan 2016 16:27:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-String-to-SHA-256/m-p/2240611#M28045</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-26T16:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] String to SHA-256</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-String-to-SHA-256/m-p/2240612#M28046</link>
      <description>&lt;P&gt;Bonjour,&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you explain how to call it from TMAP ?&lt;/P&gt;&lt;P&gt;routines.SHA(mystring) I suppose ... but how to pass password and salt ?&lt;/P&gt;&lt;P&gt;thanks in advance for your answer.&lt;/P&gt;&lt;P&gt;Damien&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 14:23:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-String-to-SHA-256/m-p/2240612#M28046</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-23T14:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] String to SHA-256</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-String-to-SHA-256/m-p/2240613#M28047</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;it works ... I means, it's giving a result but non significatives 0 (zeros on the left of the string) are not provided in the result ... that's an issue because my provider is hashing with different tools and they cannot match the hashed strings.&lt;/P&gt;&lt;P&gt;Any idea on how to get them in the result ?&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Damien&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 15:48:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-String-to-SHA-256/m-p/2240613#M28047</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-24T15:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] String to SHA-256</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-String-to-SHA-256/m-p/2240614#M28048</link>
      <description>&lt;P&gt;Hi @&lt;A href="https://community.talend.com/s/profile/00539000006yr8WAAQ" alt="https://community.talend.com/s/profile/00539000006yr8WAAQ" target="_blank"&gt;DamienBlondel&lt;/A&gt;&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;Did you find the solution to this, I'm getting same issue with leading zeros, If you find the solution could you please help me on this.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 16:35:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-String-to-SHA-256/m-p/2240614#M28048</guid>
      <dc:creator>nar</dc:creator>
      <dc:date>2022-04-05T16:35:29Z</dc:date>
    </item>
  </channel>
</rss>

