<?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: Decrypt Data from DES Block Cipher Enyryption in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Decrypt-Data-from-DES-Block-Cipher-Enyryption/m-p/1024361#M346347</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, there isn't. You can try implementing one yourself in either vbscript or javascript. For example using &lt;A href="https://code.google.com/archive/p/crypto-js/" title="https://code.google.com/archive/p/crypto-js/"&gt;crypto-js&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Feb 2016 16:57:42 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-02-01T16:57:42Z</dc:date>
    <item>
      <title>Decrypt Data from DES Block Cipher Enyryption</title>
      <link>https://community.qlik.com/t5/QlikView/Decrypt-Data-from-DES-Block-Cipher-Enyryption/m-p/1024360#M346346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have encrypted Data from a Database.&lt;/P&gt;&lt;P&gt;The Encyrption Method is "DES Block Cipher"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. a encryped number is looking like this: 1q4zxq1phbha9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any function in Qlikview for decrypt such Data?&lt;/P&gt;&lt;P&gt;I also searched for vbscript Macros but didn´t find any working snippets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any advise &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 14:53:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Decrypt-Data-from-DES-Block-Cipher-Enyryption/m-p/1024360#M346346</guid>
      <dc:creator />
      <dc:date>2016-02-01T14:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Decrypt Data from DES Block Cipher Enyryption</title>
      <link>https://community.qlik.com/t5/QlikView/Decrypt-Data-from-DES-Block-Cipher-Enyryption/m-p/1024361#M346347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, there isn't. You can try implementing one yourself in either vbscript or javascript. For example using &lt;A href="https://code.google.com/archive/p/crypto-js/" title="https://code.google.com/archive/p/crypto-js/"&gt;crypto-js&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 16:57:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Decrypt-Data-from-DES-Block-Cipher-Enyryption/m-p/1024361#M346347</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-02-01T16:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Decrypt Data from DES Block Cipher Enyryption</title>
      <link>https://community.qlik.com/t5/QlikView/Decrypt-Data-from-DES-Block-Cipher-Enyryption/m-p/1024362#M346348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your apply.&lt;/P&gt;&lt;P&gt;In your sample App you only have the AES encryption method, am i right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2016 08:26:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Decrypt-Data-from-DES-Block-Cipher-Enyryption/m-p/1024362#M346348</guid>
      <dc:creator />
      <dc:date>2016-02-02T08:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Decrypt Data from DES Block Cipher Enyryption</title>
      <link>https://community.qlik.com/t5/QlikView/Decrypt-Data-from-DES-Block-Cipher-Enyryption/m-p/1024363#M346349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function uses the method 3DES&lt;/P&gt;&lt;P&gt;But in my Database I have DES method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function encryptDES(value, key) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; return CryptoJS.DES.encrypt(value, key).toString();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;function decryptDES(value, key) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return CryptoJS.DES.decrypt(value, key).toString(CryptoJS.enc.Utf8);&lt;/P&gt;&lt;P&gt;} &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now my Problem is, with this Method I´m getting way longer encrypted numbers. &lt;/P&gt;&lt;P&gt;In my Database the encrypted Numbers only have 13 characters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2016 16:17:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Decrypt-Data-from-DES-Block-Cipher-Enyryption/m-p/1024363#M346349</guid>
      <dc:creator />
      <dc:date>2016-02-02T16:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Decrypt Data from DES Block Cipher Enyryption</title>
      <link>https://community.qlik.com/t5/QlikView/Decrypt-Data-from-DES-Block-Cipher-Enyryption/m-p/1024364#M346350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Numbers in my Database are encrypted to 13 characters.&lt;/P&gt;&lt;P&gt;With the method from above, i get longer encryption.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not the number in the Database has 13 digits.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 08:10:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Decrypt-Data-from-DES-Block-Cipher-Enyryption/m-p/1024364#M346350</guid>
      <dc:creator />
      <dc:date>2016-02-04T08:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Decrypt Data from DES Block Cipher Enyryption</title>
      <link>https://community.qlik.com/t5/QlikView/Decrypt-Data-from-DES-Block-Cipher-Enyryption/m-p/1024365#M346351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry confusing you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My data is already encrypted. I Know its encrypted with DES block cipher.&lt;/P&gt;&lt;P&gt;Now I want to decrypt it. With the code from above it doesn't work. Because&lt;/P&gt;&lt;P&gt;the entries are all only 13 chars long.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use the encrypt and decrypt method with a hard coded number it's&lt;/P&gt;&lt;P&gt;working. like: encrypt(94175, key) But then I get a longer encryption than&lt;/P&gt;&lt;P&gt;13 chars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it makes it clear&lt;/P&gt;&lt;P&gt;Am 04.02.2016 19:51 schrieb "Dan Greeberg" &amp;lt;qcwebmaster@qlikview.com&amp;gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 19:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Decrypt-Data-from-DES-Block-Cipher-Enyryption/m-p/1024365#M346351</guid>
      <dc:creator />
      <dc:date>2016-02-04T19:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Decrypt Data from DES Block Cipher Enyryption</title>
      <link>https://community.qlik.com/t5/QlikView/Decrypt-Data-from-DES-Block-Cipher-Enyryption/m-p/1024366#M346352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;I'm getting different results as I'm expecting. Is there any possibility to adjust the code from crypto-js?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 10:55:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Decrypt-Data-from-DES-Block-Cipher-Enyryption/m-p/1024366#M346352</guid>
      <dc:creator />
      <dc:date>2016-02-08T10:55:42Z</dc:date>
    </item>
  </channel>
</rss>

