<?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 Encryption and Decryption in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Encryption-and-Decryption/m-p/699653#M214025</link>
    <description>&lt;P&gt;Dear SAS Communities Members:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Following SAS code encrypts Make and Model well. How can I apply&amp;nbsp;Decryption to create Make_R and Mode_R variables from encrypted HASH field ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;( P.S. I don't want to use MD5 encryption.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data cars;&lt;BR /&gt;length hash $ 32;&lt;BR /&gt;format hash $hex64.;&lt;BR /&gt;set sashelp.cars;&lt;BR /&gt;hash = sha256(cats(make,model));&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OR&lt;/P&gt;
&lt;P&gt;I have alphanumeric variable and numeric variable.&lt;/P&gt;
&lt;P&gt;How can I encrypt and decrypt them without using MD5.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have an alphanumeric variable and numeric variables.&lt;/P&gt;
&lt;P&gt;How can I encrypt and decrypt them without using MD5.&lt;BR /&gt;Data a;&lt;/P&gt;
&lt;P&gt;input ID $ dept&amp;nbsp; SALARY;&lt;/P&gt;
&lt;P&gt;cards;&lt;/P&gt;
&lt;P&gt;ABC123 10020 45000&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;RUN;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Nov 2020 01:56:38 GMT</pubDate>
    <dc:creator>GPatel</dc:creator>
    <dc:date>2020-11-18T01:56:38Z</dc:date>
    <item>
      <title>Encryption and Decryption</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Encryption-and-Decryption/m-p/699653#M214025</link>
      <description>&lt;P&gt;Dear SAS Communities Members:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Following SAS code encrypts Make and Model well. How can I apply&amp;nbsp;Decryption to create Make_R and Mode_R variables from encrypted HASH field ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;( P.S. I don't want to use MD5 encryption.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data cars;&lt;BR /&gt;length hash $ 32;&lt;BR /&gt;format hash $hex64.;&lt;BR /&gt;set sashelp.cars;&lt;BR /&gt;hash = sha256(cats(make,model));&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OR&lt;/P&gt;
&lt;P&gt;I have alphanumeric variable and numeric variable.&lt;/P&gt;
&lt;P&gt;How can I encrypt and decrypt them without using MD5.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have an alphanumeric variable and numeric variables.&lt;/P&gt;
&lt;P&gt;How can I encrypt and decrypt them without using MD5.&lt;BR /&gt;Data a;&lt;/P&gt;
&lt;P&gt;input ID $ dept&amp;nbsp; SALARY;&lt;/P&gt;
&lt;P&gt;cards;&lt;/P&gt;
&lt;P&gt;ABC123 10020 45000&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 01:56:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Encryption-and-Decryption/m-p/699653#M214025</guid>
      <dc:creator>GPatel</dc:creator>
      <dc:date>2020-11-18T01:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Encryption and Decryption</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Encryption-and-Decryption/m-p/699658#M214026</link>
      <description>&lt;P&gt;The SAS-supplied hashing algorithms SHA256 and MD5 are for one-way encryption with no (easy) means of decryption. They rely on you retaining the original unencrypted version of your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your use case is to exchange encrypted SAS data with other parties that can easily be decrypted then I suggest using tools like 7-zip where you do file or folder password-secured encryption / decryption.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 03:42:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Encryption-and-Decryption/m-p/699658#M214026</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-11-18T03:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Encryption and Decryption</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Encryption-and-Decryption/m-p/699686#M214042</link>
      <description>&lt;P&gt;Both SHA256 and MD5 are&amp;nbsp;&lt;EM&gt;hashing&lt;/EM&gt; algorithms, not &lt;EM&gt;encrypting&lt;/EM&gt; algorithms. They produce the same length of key, regardless of the input. The source could be a single word, or the combined works of William Shakespeare. There is no way of decrypting them, only of finding a string that incidentally results in the same hash. How much computing power you need to find such a value is a measure for the quality of the hash.&lt;/P&gt;
&lt;P&gt;To get the &lt;EM&gt;original&lt;/EM&gt; values back from such a hash, you need to keep a lookup table with original value and hash.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 07:04:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Encryption-and-Decryption/m-p/699686#M214042</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-11-18T07:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Encryption and Decryption</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Encryption-and-Decryption/m-p/700467#M214367</link>
      <description>Thank you all, for your comments and suggestions to my question.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;GPatel</description>
      <pubDate>Fri, 20 Nov 2020 13:47:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Encryption-and-Decryption/m-p/700467#M214367</guid>
      <dc:creator>GPatel</dc:creator>
      <dc:date>2020-11-20T13:47:10Z</dc:date>
    </item>
  </channel>
</rss>

