Hi,
I got following problem I want to use encrypted password and login for my script for oracle DB.
#This was created with echo "login" | openssl enc -base64 and echo "password" | openssl enc -base64
login= bG9naW4K
passwd= cGFzc3dvcmQK
Im using following syntax :
login= bG9naW4K
passwd= cGFzc3dvcmQK
login_d=`echo $login| openssl enc �base64 -d`
passwd_d=`echo $passwd | openssl enc �base64 -d`
when I perform following commnads :
echo -n $ login_d
echo �n $passwd_d
it seems to be identical but when I launch
con_string=�${login_d}/${passwd_d}@${mydb}�
select =${/my_select.sql}
sqlplus �s ${con_string} @${select}
it returns: invalid username/password; logon denied
any idea where might be a problem ? maybe there are some invisible chars or something or any idea how to fix it ?
The idea is to not have password and login in text form but encrypted with openssl.