<?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 SAS beginner needs help with basic MD5 function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-needs-help-with-basic-MD5-function/m-p/81970#M17702</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When using the MD5 function, is there a way to keep the 32 bit encrypted value printable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data set_1;&lt;/P&gt;&lt;P&gt;member='JOSEPH';&lt;/P&gt;&lt;P&gt;member2=md5(member);&lt;/P&gt;&lt;P&gt;put member2= / member2 = hex32.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above outputs a variable called member2 with non printable values.&amp;nbsp; What I need is the 32 bit md5 printable value.&amp;nbsp; Could someone please help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 May 2013 20:47:06 GMT</pubDate>
    <dc:creator>joe29</dc:creator>
    <dc:date>2013-05-21T20:47:06Z</dc:date>
    <item>
      <title>SAS beginner needs help with basic MD5 function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-needs-help-with-basic-MD5-function/m-p/81970#M17702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When using the MD5 function, is there a way to keep the 32 bit encrypted value printable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data set_1;&lt;/P&gt;&lt;P&gt;member='JOSEPH';&lt;/P&gt;&lt;P&gt;member2=md5(member);&lt;/P&gt;&lt;P&gt;put member2= / member2 = hex32.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above outputs a variable called member2 with non printable values.&amp;nbsp; What I need is the 32 bit md5 printable value.&amp;nbsp; Could someone please help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 20:47:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-needs-help-with-basic-MD5-function/m-p/81970#M17702</guid>
      <dc:creator>joe29</dc:creator>
      <dc:date>2013-05-21T20:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginner needs help with basic MD5 function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-needs-help-with-basic-MD5-function/m-p/81971#M17703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Isn't the hex32. the printable values one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data set_1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;member='JOSEPH';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;member2=put(md5(member), hex32.);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put member2=;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 20:57:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-needs-help-with-basic-MD5-function/m-p/81971#M17703</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-05-21T20:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginner needs help with basic MD5 function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-needs-help-with-basic-MD5-function/m-p/81972#M17704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!! That worked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 21:05:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-needs-help-with-basic-MD5-function/m-p/81972#M17704</guid>
      <dc:creator>joe29</dc:creator>
      <dc:date>2013-05-21T21:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginner needs help with basic MD5 function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-needs-help-with-basic-MD5-function/m-p/81973#M17705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reeza, Could you help with this question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dataset called "list1".&amp;nbsp; It has one variable called "name" with one record. The value in the only record is "joseph".&amp;nbsp; Could you tell me the values for hash1 and hash2 in the below code are not the same?&amp;nbsp; The value for hash 2 is the correct one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to figure out how to get correct md5 hash values for a list of 5 million names in a dataset. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data list2;&lt;/P&gt;&lt;P&gt;set list1;&lt;/P&gt;&lt;P&gt;hash1=put(md5(name),hex32.);&lt;/P&gt;&lt;P&gt;hash2=put(md5('joseph'),hex32.);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 23:09:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-needs-help-with-basic-MD5-function/m-p/81973#M17705</guid>
      <dc:creator>joe29</dc:creator>
      <dc:date>2013-05-21T23:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginner needs help with basic MD5 function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-needs-help-with-basic-MD5-function/m-p/81974#M17706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;md5 is case sensitive.&amp;nbsp; See the code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0433ff;"&gt;input&lt;/SPAN&gt; name $;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;cards&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 12pt;"&gt;Joseph&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 12pt;"&gt;JoSeph&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 12pt;"&gt;joseph&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 12pt;"&gt;JOSEPH&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 12pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; want;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0433ff;"&gt;set&lt;/SPAN&gt; test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 12pt;"&gt;hash=put(md5(name), &lt;SPAN style="color: #009193;"&gt;hex32.&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 23:27:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-needs-help-with-basic-MD5-function/m-p/81974#M17706</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-05-21T23:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginner needs help with basic MD5 function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-needs-help-with-basic-MD5-function/m-p/81975#M17707</link>
      <description>&lt;P&gt;Thanks for the reply Reeza.&amp;nbsp; Sorry to be a pain but I still can't figure it out. Here's exactly what I'm working on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have sample list of 5 email address that I need MD5 hash values for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the sample code I used:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/********************************/&lt;BR /&gt;data email_adds;&lt;BR /&gt;infile 'C:\Documents and Settings\Joe\Desktop\email_adds.txt' &lt;BR /&gt;delimiter='09'x MISSOVER DSD lrecl=32767 firstobs=2 ;&lt;BR /&gt;informat EMAIL $29. ;&lt;BR /&gt;format EMAIL $29. ;&lt;BR /&gt;input EMAIL $;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data email_adds2;&lt;BR /&gt;set email_adds;&lt;BR /&gt;hash=put(md5(email), hex32.);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/********************************/&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the output with INCORRECT hash values:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The hash value for &lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;should be CC09B70444EA2093D940D2E86B637416. I confirmed this using an online hash generator (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.md5hashgenerator.com/index.php" target="_blank"&gt;http://www.md5hashgenerator.com/index.php&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also tried this to confirm.&amp;nbsp; Hash2 is correct:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/********************************/&lt;/P&gt;
&lt;P&gt;data test;&lt;/P&gt;
&lt;P&gt;&lt;A class="jive-link-email-small" href="mailto:email='joseph.oraa@gmail.com" target="_blank"&gt;email='&lt;/A&gt;&lt;SPAN&gt;';&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;hash=put(md5(email), hex32.);&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;hash2=put(md5(&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:'joseph.oraa@gmail.com" target="_blank"&gt;'&lt;/A&gt;&lt;SPAN&gt;'), hex32.);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;/********************************/&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 01:31:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-needs-help-with-basic-MD5-function/m-p/81975#M17707</guid>
      <dc:creator>joe29</dc:creator>
      <dc:date>2017-06-13T01:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginner needs help with basic MD5 function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-needs-help-with-basic-MD5-function/m-p/81976#M17708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have trailing in spaces in your data. Add a trim function in to remove the trailing spaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;hash=put(md5(trim(email)), hex32.);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 18:20:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-needs-help-with-basic-MD5-function/m-p/81976#M17708</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-05-22T18:20:30Z</dc:date>
    </item>
  </channel>
</rss>

