<?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: Looking for MD5 or SHA-1 Hashing Algorithm in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Looking-for-MD5-or-SHA-1-Hashing-Algorithm/m-p/256152#M57114</link>
    <description>&lt;P&gt;There is an &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003064419.htm" target="_self"&gt;MD5 data step function&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Mar 2016 16:04:43 GMT</pubDate>
    <dc:creator>Tim_SAS</dc:creator>
    <dc:date>2016-03-11T16:04:43Z</dc:date>
    <item>
      <title>Looking for MD5 or SHA-1 Hashing Algorithm</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Looking-for-MD5-or-SHA-1-Hashing-Algorithm/m-p/256123#M57111</link>
      <description>&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.0pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;Hi all,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: 1; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: 1; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;I'm looking for a program to take a string variable (email address) and create a hash for the value in each row via either MD5 or SHA-1.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: 1; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: 1; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;Tried using the sha256 function, because it was all I could find, but it is not the correct hashing algorithm which I need to apply. &amp;nbsp; I need to use MD5 or SHA_1. &amp;nbsp; Any assistance&amp;nbsp;will be greatly appreciated. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.0pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.0pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&amp;nbsp;want;&lt;/P&gt;
&lt;P&gt;set have;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;format hash $hex64.;&lt;/P&gt;
&lt;P&gt;hash=sha256(EMAIL_ADDRESS);; &lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2016 14:55:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Looking-for-MD5-or-SHA-1-Hashing-Algorithm/m-p/256123#M57111</guid>
      <dc:creator>RobertNYC</dc:creator>
      <dc:date>2016-03-11T14:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for MD5 or SHA-1 Hashing Algorithm</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Looking-for-MD5-or-SHA-1-Hashing-Algorithm/m-p/256130#M57112</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I may have missed something here, but from my understanding MD5 is an algorithm for ensuring a file is complete and unchanged from a sender. &amp;nbsp;I think SHA-1 is a simliar technology, but I don't know that one off the top of my head. &amp;nbsp;Could you clarify your requirements, i.e. what needs to be encrpyted, why it needs it, and why those particular technologies? &amp;nbsp;If you just want to hide a password or email then there is this function:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002595988.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002595988.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But that has nothing to do with MD5. &amp;nbsp;Or alternatively you could get a free command line MD5 generator program and use that to do the job:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.fourmilab.ch/md5/" target="_blank"&gt;https://www.fourmilab.ch/md5/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;E.g.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;infile tmp pipe 'md5gen "c:\tmp.txt"';
data want;
  length mymd5 $100;
  infile tmp;
  input mymd5 $;
run;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Mar 2016 15:22:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Looking-for-MD5-or-SHA-1-Hashing-Algorithm/m-p/256130#M57112</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-03-11T15:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for MD5 or SHA-1 Hashing Algorithm</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Looking-for-MD5-or-SHA-1-Hashing-Algorithm/m-p/256146#M57113</link>
      <description>&lt;P&gt;In just over&amp;nbsp;&lt;STRONG&gt;one month&lt;/STRONG&gt;&amp;nbsp;an approach will be available as part of SAS Global Forum proceedings,&lt;A href="https://sasglobalforum2016.lanyonevents.com/connect/sessionDetail.ww?SESSION_ID=2800" target="_self"&gt; thanks to a paper by Rick Langston.&lt;/A&gt;&amp;nbsp; Rick's paper shows how you can take a well-documented C-language algorithm and implement in DATA step. &amp;nbsp;It's fascinating!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2016 15:52:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Looking-for-MD5-or-SHA-1-Hashing-Algorithm/m-p/256146#M57113</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2016-03-11T15:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for MD5 or SHA-1 Hashing Algorithm</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Looking-for-MD5-or-SHA-1-Hashing-Algorithm/m-p/256152#M57114</link>
      <description>&lt;P&gt;There is an &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003064419.htm" target="_self"&gt;MD5 data step function&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2016 16:04:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Looking-for-MD5-or-SHA-1-Hashing-Algorithm/m-p/256152#M57114</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2016-03-11T16:04:43Z</dc:date>
    </item>
  </channel>
</rss>

