示例#1
0
文件: watch.py 项目: Pi03k/py3specto
 def remove_keyring(self, name):
     try:
         k = Keyring(name, "Specto " + name, "network")
         password = self.read_option(name, "password")
         k.remove_keyring(password)
     except:
         pass
示例#2
0
文件: watch.py 项目: Pi03k/py3specto
 def decode_password(self, name, password):
     if self.specto.use_keyring == True and keyring == True:
         try:
             k = Keyring(name, "Specto " + name, "network")
             password = k.get_credentials()[1]
         except:
             password = password
     return password
示例#3
0
文件: watch.py 项目: Pi03k/py3specto
 def encode_password(self, name, password):
     if self.specto.use_keyring == True and keyring == True:
         k = Keyring(name, "Specto " + name, "network")
         id = k.set_credentials((name, password))
         password = "******" + str(id)
     return password