<?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 generate hashkey in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-generate-hashkey/m-p/2277264#M53093</link>
    <description>You're welcome</description>
    <pubDate>Wed, 02 Oct 2019 14:53:12 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2019-10-02T14:53:12Z</dc:date>
    <item>
      <title>How to generate hashkey</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-generate-hashkey/m-p/2277261#M53090</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone suggest me, how to generate a hashcode using four business elements, which are coming from a source, am not familiar with java to write a routine for 4 business elements. i found a component taddCRCrow,but this can be used to get surrogate key not a hash code value, do we have any good component which can produce hash code, or else can any help me out how to write java code using 4 business elements, all this 4 attributes are string datatype&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks In Advance&lt;/P&gt;&lt;P&gt;Manish&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 14:26:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-generate-hashkey/m-p/2277261#M53090</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-02T14:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate hashkey</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-generate-hashkey/m-p/2277262#M53091</link>
      <description>&lt;P&gt;Here is a piece of code you can use to generate a MD5 string from an input (called strCode):&lt;/P&gt; 
&lt;PRE&gt;package routines;
import java.security.*;
public class GetHashCode {
	public static String getMD5(String strCode) {
		java.security.MessageDigest msg;
		String digest1 = "";
		try {
			msg = java.security.MessageDigest.getInstance("MD5");
			msg.update(strCode.getBytes(), 0, strCode.length());
			digest1 = new java.math.BigInteger(1, msg.digest()).toString(32);
		}
		catch (NoSuchAlgorithmException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return digest1.toUpperCase();
	}
}&lt;/PRE&gt; 
&lt;P&gt;Create the routine and copy/past the code then start using it&amp;nbsp;from anywhere in your jobs using the following expression:&lt;/P&gt; 
&lt;PRE&gt;GetHashCode.getMD5(row1.field1 + row1.field2 + row1.field3 + row1.field4)&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 14:35:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-generate-hashkey/m-p/2277262#M53091</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-10-02T14:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate hashkey</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-generate-hashkey/m-p/2277263#M53092</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&amp;nbsp;Thank you so much for very swift response and&amp;nbsp; it worked out.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 14:45:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-generate-hashkey/m-p/2277263#M53092</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-02T14:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate hashkey</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-generate-hashkey/m-p/2277264#M53093</link>
      <description>You're welcome</description>
      <pubDate>Wed, 02 Oct 2019 14:53:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-generate-hashkey/m-p/2277264#M53093</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-10-02T14:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate hashkey</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-generate-hashkey/m-p/2277265#M53094</link>
      <description>&lt;P&gt;Is it possible to get the result only in integers.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2020 23:40:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-generate-hashkey/m-p/2277265#M53094</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-12T23:40:38Z</dc:date>
    </item>
  </channel>
</rss>

