The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 11-08-2004
bubba112557 bubba112557 is offline
Registered User
  
 

Join Date: Apr 2004
Posts: 21
Encrypting a password for shell script

All,

I want to encrypt a database system administration password into a file or environment variable. Then, I want to decrypt the password from the file or environment variable so nobody sees the clear text password.

For example, I have the database password of developement.
I need to execute the following line to access the database:

isql -Usysadmin -Pdevelopment

I want users not to see the development password in clear text.

Thanks!