def decrypt_revelation_file(self, thedata): pwd = getpass.getpass() handler = detect_handler(thedata) dafi = DataFile(handler) thepasswords = dafi.load(self.revelationfile, password=pwd) return thepasswords
def read_revelation_file(self): """ Decrypt the content of the revelation database. """ LOG.debug('Read the content of the database.') self.handler = detect_handler(self.dbdata) dafi = DataFile(self.handler) password = getpass.getpass() content = dafi.load(self.dbfile, password=password) return content