<?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: Encoding password in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-password/m-p/1389039#M189224</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please check the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data enpwd(32) type c.
parameter pwd like enpwd .
enpwd = pwd.
******** Encrypting *******************
CALL FUNCTION &amp;lt;b&amp;gt;'FIEB_PASSWORD_ENCRYPT'&amp;lt;/b&amp;gt;
EXPORTING
IM_DECRYPTED_PASSWORD = enpwd
IMPORTING
EX_ENCRYPTED_PASSWORD = enpwd
.
clear pwd.
******** Decrypting *******************
CALL FUNCTION &amp;lt;b&amp;gt;'FIEB_PASSWORD_DECRYPT'&amp;lt;/b&amp;gt;
EXPORTING
IM_ENCRYPTED_PASSWORD = enpwd
IMPORTING
EX_DECRYPTED_PASSWORD = pwd.
write :/ pwd.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Jul 2006 07:13:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-05T07:13:46Z</dc:date>
    <item>
      <title>Encoding password</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-password/m-p/1389038#M189223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi alltogether,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some problems by encoding a password.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Login with username and password.&lt;/P&gt;&lt;P&gt;Username and password are saved in a table.&lt;/P&gt;&lt;P&gt;Now, how can I save the password encrypted in the table and how can later the system decrypt the password to verify the password the user has entered?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope someone can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2006 07:11:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-password/m-p/1389038#M189223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-05T07:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Encoding password</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-password/m-p/1389039#M189224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please check the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data enpwd(32) type c.
parameter pwd like enpwd .
enpwd = pwd.
******** Encrypting *******************
CALL FUNCTION &amp;lt;b&amp;gt;'FIEB_PASSWORD_ENCRYPT'&amp;lt;/b&amp;gt;
EXPORTING
IM_DECRYPTED_PASSWORD = enpwd
IMPORTING
EX_ENCRYPTED_PASSWORD = enpwd
.
clear pwd.
******** Decrypting *******************
CALL FUNCTION &amp;lt;b&amp;gt;'FIEB_PASSWORD_DECRYPT'&amp;lt;/b&amp;gt;
EXPORTING
IM_ENCRYPTED_PASSWORD = enpwd
IMPORTING
EX_DECRYPTED_PASSWORD = pwd.
write :/ pwd.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2006 07:13:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-password/m-p/1389039#M189224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-05T07:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Encoding password</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-password/m-p/1389040#M189225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andreas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider this code. It uses class &amp;lt;b&amp;gt;CL_HTTP_UTILITY&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just execute this code in SE38.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  zarun_pass                           .
 
PARAMETERS : pass(32) TYPE c.
 
DATA : passwd  TYPE string,
       encoded TYPE string,
       decoded TYPE string.
 
passwd = pass.
CONDENSE passwd.
CALL METHOD cl_http_utility=&amp;gt;if_http_utility~encode_base64    "Method for Encryption
  EXPORTING
    unencoded = passwd
  RECEIVING
    encoded   = encoded.
 
 
CALL METHOD cl_http_utility=&amp;gt;if_http_utility~decode_base64    "Method for Decryption
  EXPORTING
    encoded = encoded
  RECEIVING
    decoded = decoded.
 
 
WRITE : / 'Password Entered   :' , pass,
        / 'Encrypted Password :' , encoded,
        / 'Decrypted Password :' , decoded.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arun Sambargi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Arun Sambargi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2006 07:20:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-password/m-p/1389040#M189225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-05T07:20:07Z</dc:date>
    </item>
  </channel>
</rss>

