![]() |
2013-01-13
, 23:17
|
|
Posts: 2,448 |
Thanked: 9,523 times |
Joined on Aug 2010
@ Wigan, UK
|
#2
|
import os credentials = os.system('zenity --password --username').split('|') if len(credentials) >= 2: username = credentials[0].strip() password = credentials[1].strip() // remove leading/trailing whitespace else: print "Problem with username/password"
The Following 2 Users Say Thank You to marxian For This Useful Post: | ||
i use a Python script to login to my providers Hotspots. (without a visit of the providers webpage and enter data manually) But the script needs username and pw, sure. So, I think it's unsafe to safe both in the script. (everbody who get the phone can read them). I could implement a call to enter the pw, but I use the Command Execution Widget to exucute the script and have no idea to create soemthing like a popup window to enter the pw.
Did anybody deal with this safety problem in scripts?
Greetings