in reply to Need to encrypt the password in file.

Your requirements aren't clear. See I know what I mean. Why don't you?
We can try to find solutions only for stated problems. If the password is encrypted, perl will read the encrypted password from the config file. Where's the problem?

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'