def get_all_pass(self): """ Returns all the passwords in the vault. """ r_dte = DTE_random() return ((i, self.dte.decode_pw(s)) if self.machine_pass_set[i] == '0'\ else (i, r_dte.decode_pw(s)) for i,s in enumerate(self.S))
def get_password(self, domain_list, send_raw=False): pw_list = [] r_dte = DTE_random() for d in domain_list: i = self.get_domain_index(d) if self.machine_pass_set[i] == '1': pw = r_dte.decode_pw(self.S[i]) else: pw = self.dte.decode_pw(self.S[i]) pw_list.append(pw) return OrderedDict(zip(domain_list, pw_list))