<?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: how to secure a password in sas in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-secure-a-password-in-sas/m-p/895362#M43720</link>
    <description>&lt;P&gt;How secure do you want your password to be? PROC PWENCODE is one option:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc pwencode in = 'mypassword';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASKiwi_0-1695337557556.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88214iA4142A676AD32F01/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASKiwi_0-1695337557556.png" alt="SASKiwi_0-1695337557556.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Just replace the PW text in your LIBNAME with&amp;nbsp;{SAS002}68B279564BD2695538CDCDB301E8A357563480B0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This wont prevent someone just copying and pasting your LIBNAME into their own code though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2023 23:10:38 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2023-09-21T23:10:38Z</dc:date>
    <item>
      <title>how to secure a password in sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-secure-a-password-in-sas/m-p/895346#M43714</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A simple way to connect to an Oracle table is to use the follow SAS code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;LIBNAME myora ORACLE PATH=orasrv USER=myuse PW=mypassword:&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But what is the best way to protect the username and password so nobody can see their values.&lt;/P&gt;
&lt;P&gt;Please provide an example.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 20:30:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-secure-a-password-in-sas/m-p/895346#M43714</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2023-09-21T20:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to secure a password in sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-secure-a-password-in-sas/m-p/895362#M43720</link>
      <description>&lt;P&gt;How secure do you want your password to be? PROC PWENCODE is one option:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc pwencode in = 'mypassword';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASKiwi_0-1695337557556.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88214iA4142A676AD32F01/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASKiwi_0-1695337557556.png" alt="SASKiwi_0-1695337557556.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Just replace the PW text in your LIBNAME with&amp;nbsp;{SAS002}68B279564BD2695538CDCDB301E8A357563480B0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This wont prevent someone just copying and pasting your LIBNAME into their own code though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 23:10:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-secure-a-password-in-sas/m-p/895362#M43720</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-09-21T23:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to secure a password in sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-secure-a-password-in-sas/m-p/895375#M43724</link>
      <description>&lt;P&gt;Another more secure option is to create a new Authentication Domain in SAS metadata, within a new metadata User Group, then add an Oracle account and password to use for the whole group. You then add all SAS users allowed to access Oracle to this new user group. You need to have administrator access to SAS Management Console to be able to set this up and you also need a shared account for Oracle access - one that is shared across all users in Oracle SAS user group. You would need approval from your IT security folks to obtain this. Your LIBNAME would now look similar to this:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname MyOracle Authdomain = OracleAuth;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 03:34:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-secure-a-password-in-sas/m-p/895375#M43724</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-09-22T03:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to secure a password in sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-secure-a-password-in-sas/m-p/895517#M43734</link>
      <description>&lt;P&gt;A few methods.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Store the password into an environment variable and use %SYSGET() to pass it to the LIBNAME statement.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME myora ORACLE PATH=orasrv USER=myuse PW="%sysget(mypassword)";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note you might want to use this &lt;A href="https://github.com/sasutils/macros/blob/master/qsysget.sas" target="_self"&gt;%QSYSGET() macro&lt;/A&gt; if your passwords are messy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Store the password into a file (with proper access permissions) and read from the file to generate the libref.&amp;nbsp; You could just use it to generate a LIBNAME() function call.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
   infile 'mypassword' ;
   input;
   rc = libname('myora','ORACLE',,catx(' ','PATH=orasrv USER=myuser PW=',quote(trim(_infile_))));
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For ORACLE try defining an ORACLE WALLET and use that to connect.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Sep 2023 00:57:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-secure-a-password-in-sas/m-p/895517#M43734</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-09-23T00:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to secure a password in sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-secure-a-password-in-sas/m-p/935780#M45022</link>
      <description>&lt;P&gt;Securing passwords in SAS is super important these days. It's like having a guard dog for your online accounts! These tools help you create passwords that are tough for hackers to crack.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 10:06:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-secure-a-password-in-sas/m-p/935780#M45022</guid>
      <dc:creator>mightydron</dc:creator>
      <dc:date>2024-07-15T10:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to secure a password in sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-secure-a-password-in-sas/m-p/936320#M45036</link>
      <description>&lt;P&gt;One easy way to do it is to use a &lt;A href="https://www.strongpasswordgenerator.org/password-strength-checker/" target="_self"&gt;strong password checker&lt;/A&gt;. Here's a tip: try to mix it up with a combo of letters, numbers, and symbols. Avoid using easy stuff like your pet's name or "password123". Plus, don't forget to change your password regularly to keep those sneaky cyber folks guessing. Another cool trick is using two-factor authentication when you can. It adds an extra layer of security, like having a secret code to get into your clubhouse.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 10:02:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-secure-a-password-in-sas/m-p/936320#M45036</guid>
      <dc:creator>mightydron</dc:creator>
      <dc:date>2024-07-19T10:02:23Z</dc:date>
    </item>
  </channel>
</rss>

