<?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: 3des encryption in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/3des-encryption/m-p/1532072#M243084</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I realised that it is possible in 46c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Jan 2009 23:08:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-01T23:08:17Z</dc:date>
    <item>
      <title>3des encryption</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/3des-encryption/m-p/1532071#M243083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a Oracle database proceudure as follows &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OR REPLACE procedure encrypt_card_1hex(&lt;/P&gt;&lt;P&gt;plain_card_id	  IN varchar2,&lt;/P&gt;&lt;P&gt;password_t		  IN varchar2,&lt;/P&gt;&lt;P&gt;enc_card_string  out varchar2,&lt;/P&gt;&lt;P&gt;whch			  IN number)&lt;/P&gt;&lt;P&gt;as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  pseudo_string 	  		varchar2(100);&lt;/P&gt;&lt;P&gt;  plain_card_string		varchar2(24) := plain_card_id;&lt;/P&gt;&lt;P&gt;  key_string			varchar2(24) := password_t;&lt;/P&gt;&lt;P&gt;  encrypted_card_string		varchar2(256);&lt;/P&gt;&lt;P&gt;  begin&lt;/P&gt;&lt;P&gt;     dbms_obfuscation_toolkit.DES3Encrypt(&lt;/P&gt;&lt;P&gt;                             input_string =&amp;gt; plain_card_string,&lt;/P&gt;&lt;P&gt;                             key_string =&amp;gt; key_string,&lt;/P&gt;&lt;P&gt;                             encrypted_string =&amp;gt; encrypted_card_string,&lt;/P&gt;&lt;P&gt;                             which =&amp;gt; whch);&lt;/P&gt;&lt;P&gt;     enc_card_string := rawtohex(UTL_RAW.CAST_TO_RAW(encrypted_card_string));&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created an abap program to encrypt a string using this procedure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERs: cr_card(24).&lt;/P&gt;&lt;P&gt;DATA: en_card type c length 48,&lt;/P&gt;&lt;P&gt;      pwdc(24),&lt;/P&gt;&lt;P&gt;      which TYPE i,&lt;/P&gt;&lt;P&gt;      f1(80).&lt;/P&gt;&lt;P&gt;PARAMETERS: crcard type c length 24.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE  'f9ejds73hs727i0z' TO pwdc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  EXEC SQL.&lt;/P&gt;&lt;P&gt;    execute procedure&lt;/P&gt;&lt;P&gt;    encrypt_card_1hex ( in :crcard, in :pwdc, out :en_card, in 0)&lt;/P&gt;&lt;P&gt;  ENDEXEC.&lt;/P&gt;&lt;P&gt;This returns a 32 character string. But if this procedure is called from PL sql, it returns 48 characters. Also if the input cr_card is not a multiple of 8, the program abends with the following error:-&lt;/P&gt;&lt;P&gt;Database error text........: "ORA-28232: invalid input length for obfuscation&lt;/P&gt;&lt;P&gt; toolkit#ORA-06512: at "SYS.DBMS_OBFUSCATION_TOOLKIT_FFI", line 0#ORA-06512: at&lt;/P&gt;&lt;P&gt; "SYS.DBMS_OBFUSCATION_TOOLKIT", line 201#ORA-06512: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any takers. I have never returned emplty handed from sdn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 09:46:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/3des-encryption/m-p/1532071#M243083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-21T09:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: 3des encryption</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/3des-encryption/m-p/1532072#M243084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I realised that it is possible in 46c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jan 2009 23:08:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/3des-encryption/m-p/1532072#M243084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-01T23:08:17Z</dc:date>
    </item>
  </channel>
</rss>

