<?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: Generate an encrypted file in SAS, in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Generate-an-encrypted-file-in-SAS/m-p/718741#M222464</link>
    <description>&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b" data-language-for-alternatives="en" data-language-to-translate-into="es" data-phrase-index="0"&gt;&lt;SPAN&gt;Hi.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b" data-language-for-alternatives="en" data-language-to-translate-into="es" data-phrase-index="2"&gt;&lt;SPAN&gt;At the file level and at the variable level.&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Design an example with the sas help data sets.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data Encrypt_team;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;set SASHELP.BASEBALL (keep=Team);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Encrypt_team=MD5(team);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;format Encrypt_team $hex64.; &lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b" data-language-for-alternatives="en" data-language-to-translate-into="es" data-phrase-index="8"&gt;&lt;SPAN&gt;I think that with that I can resolve the requirement at the variable level.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b" data-language-for-alternatives="en" data-language-to-translate-into="es" data-phrase-index="4"&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Feb 2021 20:34:03 GMT</pubDate>
    <dc:creator>SAS_LuisBolivar</dc:creator>
    <dc:date>2021-02-11T20:34:03Z</dc:date>
    <item>
      <title>Generate an encrypted file in SAS,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Generate-an-encrypted-file-in-SAS/m-p/718702#M222455</link>
      <description>&lt;P&gt;Good afternoon community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need your expert support, I need to generate a file in encrypted SAS, it would help me a lot if you can share an example or a link where I can find an example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 19:07:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Generate-an-encrypted-file-in-SAS/m-p/718702#M222455</guid>
      <dc:creator>SAS_LuisBolivar</dc:creator>
      <dc:date>2021-02-11T19:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Generate an encrypted file in SAS,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Generate-an-encrypted-file-in-SAS/m-p/718718#M222459</link>
      <description>&lt;P&gt;If you go to&amp;nbsp;&lt;A href="https://lexjansen.com/" target="_self"&gt;Lex Jansen's Website&lt;/A&gt;&amp;nbsp;of SAS (regional and global) conference papers, and search for "encrypt", a number of papers shows up.&amp;nbsp; The latest is a SESUG 2020 paper,&amp;nbsp;&lt;A href="https://www.lexjansen.com/sesug/2020/SESUG2020_Paper_164_Final_PDF.pdf" target="_self"&gt;Data Security in SAS® using Encryption and Hashing&lt;/A&gt;, by&amp;nbsp;Rajasekar Sundaram&amp;nbsp; &amp;nbsp;Start with that.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 19:31:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Generate-an-encrypted-file-in-SAS/m-p/718718#M222459</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2021-02-11T19:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Generate an encrypted file in SAS,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Generate-an-encrypted-file-in-SAS/m-p/718733#M222462</link>
      <description>&lt;P&gt;Your question isn't clear. What type of files do you want to encrypt? SAS datasets, SAS programs or something else? Or do you want to encrypt variables within SAS datasets?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to encrypt at the file level then you would be better off using specialist tools like 7-Zip, PGP etc. If you want to encrypt actual variables in SAS datasets then you need to explain your requirements.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 20:08:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Generate-an-encrypted-file-in-SAS/m-p/718733#M222462</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-02-11T20:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Generate an encrypted file in SAS,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Generate-an-encrypted-file-in-SAS/m-p/718741#M222464</link>
      <description>&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b" data-language-for-alternatives="en" data-language-to-translate-into="es" data-phrase-index="0"&gt;&lt;SPAN&gt;Hi.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b" data-language-for-alternatives="en" data-language-to-translate-into="es" data-phrase-index="2"&gt;&lt;SPAN&gt;At the file level and at the variable level.&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Design an example with the sas help data sets.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data Encrypt_team;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;set SASHELP.BASEBALL (keep=Team);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Encrypt_team=MD5(team);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;format Encrypt_team $hex64.; &lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b" data-language-for-alternatives="en" data-language-to-translate-into="es" data-phrase-index="8"&gt;&lt;SPAN&gt;I think that with that I can resolve the requirement at the variable level.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b" data-language-for-alternatives="en" data-language-to-translate-into="es" data-phrase-index="4"&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 20:34:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Generate-an-encrypted-file-in-SAS/m-p/718741#M222464</guid>
      <dc:creator>SAS_LuisBolivar</dc:creator>
      <dc:date>2021-02-11T20:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Generate an encrypted file in SAS,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Generate-an-encrypted-file-in-SAS/m-p/718805#M222489</link>
      <description>&lt;P&gt;At the data set level, use option encrypt=&lt;/P&gt;
&lt;P&gt;At the variable level, use function SHA256 (and possibly format hex.).&amp;nbsp; MD5 is now considered weak and obsolete,&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 02:54:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Generate-an-encrypted-file-in-SAS/m-p/718805#M222489</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-02-12T02:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Generate an encrypted file in SAS,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Generate-an-encrypted-file-in-SAS/m-p/718810#M222492</link>
      <description>&lt;P&gt;If you need is encrypted SAS dataset, try this code.&lt;/P&gt;
&lt;P&gt;Open these datasets in a text editor such as notepad or a binary editor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* not encrypted dataset */
data noenc;
  a='123456789';
run;

/* middle secure encrypted dataset:SAS8 */
data enc1(encrypt=yes pw=password);
  a='123456789';
run;

/* high secure encrypted dataset:SAS9.4 */
data enc2(encrypt=aes encryptkey=key);
  a='123456789';
run;

/* extreme secure encrypted dataset:SAS9.4m5~ */
data enc3(encrypt=aes2 encryptkey=key);
  a='123456789';
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 04:31:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Generate-an-encrypted-file-in-SAS/m-p/718810#M222492</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2021-02-12T04:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Generate an encrypted file in SAS,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Generate-an-encrypted-file-in-SAS/m-p/718811#M222493</link>
      <description>&lt;P&gt;The MD5 function is a hash generator, not an encryptor!&lt;/P&gt;
&lt;P&gt;Simply put, there is a difference between hashing,&lt;/P&gt;
&lt;P&gt;which is for uniqueness and is non-reversible, and&lt;/P&gt;
&lt;P&gt;encryption, which is for confidentiality and is reversible.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 04:26:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Generate-an-encrypted-file-in-SAS/m-p/718811#M222493</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2021-02-12T04:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Generate an encrypted file in SAS,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Generate-an-encrypted-file-in-SAS/m-p/718825#M222500</link>
      <description>&lt;P&gt;Hashing isn't unique. Since the hashes have a finite length for any source length, you can find an infinite number of source values creating the same hash.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 07:43:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Generate-an-encrypted-file-in-SAS/m-p/718825#M222500</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-02-12T07:43:19Z</dc:date>
    </item>
  </channel>
</rss>

