I have the following script to SSH into a server with wheel user. It is a test script that I want to use in many servers and applications. But rather than giving the passwords as plain text inside the script I want it to be hidden or encrypted and then decrypted when the script is run.

```
#!/usr/bin/expect -f

set timeout 2

set ip 78.47.1xx.xx
set port 22
set rootpwd adgajfgjagf
set wuser winner
set wpwd winner#@!

spawn ssh -l $wuser $ip -p $port
            expect -re "connecting (yes/no)?" {
            send -- "yes\r"
            }
            expect -nocase -re "password:" {
            send "$wpwd\r"
           }

        expect "# " {
        send  -- "su - root\r"
            expect "Password: "
            send -- "$rootpwd\r"
            interact
        } ## Heading ##

```