def remove_keyring(self, name): try: k = Keyring(name, "Specto " + name, "network") password = self.read_option(name, "password") k.remove_keyring(password) except: pass
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
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