how to write encrypt form of password in pexpect script?
Hi, all
I write a script like this telnet_cmd = "telnet %s" %(host_name) child = pexpect.spawn(telnet_cmd) child.logfile = sys.stdout child.expect('Username: ') child.sendline('wizard') child.expect('Password:') child.sendline('password') while the password is seen by everyone. I am wondering any method to replace this? I tried base64, but definitely, everyone also could decode the base64 password. So, any other method to do this? |
would someone give me some hint?
|
All times are GMT -5. The time now is 11:03 AM. |