<?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 How to encrypt password within scripts in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-encrypt-password-within-scripts/m-p/4924481#M408569</link>
    <description>Hi guys,&lt;BR /&gt;&lt;BR /&gt;I have a database script that contains system password within it. How can i encrypt the password with any other character.&lt;BR /&gt;&lt;BR /&gt;Similarly, is there a way the script will prompt me for the password and i can type in the system password, in encrypted format.&lt;BR /&gt;And when the backup will be scheduled it will take the encrypted password.&lt;BR /&gt;&lt;BR /&gt;Please advice us,&lt;BR /&gt;AJi&lt;BR /&gt;&lt;BR /&gt;Please advice me</description>
    <pubDate>Thu, 08 Sep 2005 04:59:43 GMT</pubDate>
    <dc:creator>Aji Thomas</dc:creator>
    <dc:date>2005-09-08T04:59:43Z</dc:date>
    <item>
      <title>How to encrypt password within scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-encrypt-password-within-scripts/m-p/4924481#M408569</link>
      <description>Hi guys,&lt;BR /&gt;&lt;BR /&gt;I have a database script that contains system password within it. How can i encrypt the password with any other character.&lt;BR /&gt;&lt;BR /&gt;Similarly, is there a way the script will prompt me for the password and i can type in the system password, in encrypted format.&lt;BR /&gt;And when the backup will be scheduled it will take the encrypted password.&lt;BR /&gt;&lt;BR /&gt;Please advice us,&lt;BR /&gt;AJi&lt;BR /&gt;&lt;BR /&gt;Please advice me</description>
      <pubDate>Thu, 08 Sep 2005 04:59:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-encrypt-password-within-scripts/m-p/4924481#M408569</guid>
      <dc:creator>Aji Thomas</dc:creator>
      <dc:date>2005-09-08T04:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to encrypt password within scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-encrypt-password-within-scripts/m-p/4924482#M408570</link>
      <description>You have "crypt" command.&lt;BR /&gt;&lt;BR /&gt;But be sure that the encrypting algorithm of DB is the same of "crypt".&lt;BR /&gt;&lt;BR /&gt;Alex.</description>
      <pubDate>Thu, 08 Sep 2005 05:05:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-encrypt-password-within-scripts/m-p/4924482#M408570</guid>
      <dc:creator>Alex Lavrov.</dc:creator>
      <dc:date>2005-09-08T05:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to encrypt password within scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-encrypt-password-within-scripts/m-p/4924483#M408571</link>
      <description>There are compilers for shell scripts. you may look at those products. like shelllock or something similar.&lt;BR /&gt;&lt;BR /&gt;Otherwise, you can not encrypt the pass in a shell file. What you can do is put following code, that will supress, the echo of the password.&lt;BR /&gt;&lt;BR /&gt;trap 'stty echo; exit' 0 1 2 3 15 &lt;BR /&gt;echo "Enter Password: \c" &lt;BR /&gt;stty -echo &lt;BR /&gt;read PASSWD &lt;BR /&gt;stty echo &lt;BR /&gt;</description>
      <pubDate>Thu, 08 Sep 2005 05:08:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-encrypt-password-within-scripts/m-p/4924483#M408571</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-09-08T05:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to encrypt password within scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-encrypt-password-within-scripts/m-p/4924484#M408572</link>
      <description>Hi RAC,&lt;BR /&gt;&lt;BR /&gt;Thanks for the advice,&lt;BR /&gt;I want to verify the password matches with the database.&lt;BR /&gt;How can i achieve that?&lt;BR /&gt;&lt;BR /&gt;Something like including &lt;BR /&gt;sqlplus system/$PASSWD&lt;BR /&gt;&lt;BR /&gt;when i tried to include its shows the output, i want to run this autentication in the background. Please advice me&lt;BR /&gt;&lt;BR /&gt;AJi</description>
      <pubDate>Thu, 08 Sep 2005 05:56:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-encrypt-password-within-scripts/m-p/4924484#M408572</guid>
      <dc:creator>Aji Thomas</dc:creator>
      <dc:date>2005-09-08T05:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to encrypt password within scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-encrypt-password-within-scripts/m-p/4924485#M408573</link>
      <description>do your password check as follows.&lt;BR /&gt;&lt;BR /&gt;stty -echo&lt;BR /&gt;your code for check goes here&lt;BR /&gt;some more code&lt;BR /&gt;stty echo&lt;BR /&gt;&lt;BR /&gt;Anything between stty -echo  and stty echo&lt;BR /&gt;will not be displayed to the screen. &lt;BR /&gt;You can also do re-directon of std out, std err to /dev/null&lt;BR /&gt;&lt;BR /&gt;"check_statement" &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Sep 2005 06:10:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-encrypt-password-within-scripts/m-p/4924485#M408573</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-09-08T06:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to encrypt password within scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-encrypt-password-within-scripts/m-p/4924486#M408574</link>
      <description>Oh, by encrypted method you ment so the password will not be shown on the screen, I thought you wanna encrypt it before using.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Try:&lt;BR /&gt;&lt;BR /&gt;sqlplus -L user/password &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;echo $?&lt;BR /&gt;&lt;BR /&gt;So, if "$?" is 0, login was ok, if not, login failed. -L option says to try login only once and exit and all the output we redirect to /dev/null.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Alex.</description>
      <pubDate>Thu, 08 Sep 2005 06:15:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-encrypt-password-within-scripts/m-p/4924486#M408574</guid>
      <dc:creator>Alex Lavrov.</dc:creator>
      <dc:date>2005-09-08T06:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to encrypt password within scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-encrypt-password-within-scripts/m-p/4924487#M408575</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Guys, its working fine.&lt;BR /&gt;In my script i included as follows,&lt;BR /&gt;&lt;BR /&gt;-------------------------------------------&lt;BR /&gt;trap 'stty echo; exit' 0 1 2 3 15&lt;BR /&gt;echo "Enter Password: \c"&lt;BR /&gt;stty -echo&lt;BR /&gt;read PASSWD&lt;BR /&gt;&lt;BR /&gt;sqlplus -L system/$PASSWD@prod &amp;lt;&lt;EOF1&gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;exit&lt;BR /&gt;EOF1&lt;BR /&gt;exit_code="$?"&lt;BR /&gt;&lt;BR /&gt;if test "$exit_code" = "1"; then&lt;BR /&gt;        printf "\nLogin failed\n";&lt;BR /&gt;else&lt;BR /&gt;        printf "\nLogin Success\n";&lt;BR /&gt;fi&lt;BR /&gt;-------------------------------------&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;AJi&lt;/EOF1&gt;</description>
      <pubDate>Thu, 08 Sep 2005 10:06:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-encrypt-password-within-scripts/m-p/4924487#M408575</guid>
      <dc:creator>Aji Thomas</dc:creator>
      <dc:date>2005-09-08T10:06:35Z</dc:date>
    </item>
  </channel>
</rss>

