[CALUG] Encrypting Passwords for Shell Scripts
James Ewing Cottrell III
JECottrell3 at Comcast.NET
Thu Jan 7 02:34:35 EST 2016
Best Practice is to put the password in another separate file and read
that like so:
read PASSWORD < password
or, less artistically,
PASSWORD=$(cat password)
or even
source password
where password contains one line:
PASSWORD=swordfish
JIM
On 11/9/2015 4:27 PM, Rajiv Gunja wrote:
> Hello,
> I have used Oracle Wallet in the past to store password for Shell
> Scripts, that need to connect to a Database.
>
> A current project requires to store password in an encrypted fashion,
> but Oracle Wallet is not available.
>
> Let me know how I can achieve this.
>
> Thanks
>
> -Rajiv
>
> Rajiv G Gunja
>
>
> _______________________________________________
> CALUG mailing list
> CALUG at unknownlamer.org
> http://lists.unknownlamer.org/listinfo/calug
>
More information about the CALUG
mailing list