def round_trip_strings(self, keys, text): iv, sym_key, enc = envelope.encrypt(text, key=open(keys[1], 'rb').read()) return envelope.decrypt(iv, sym_key, enc, key=open(keys[0], 'rb').read())
def round_trip(self, keys, text): iv, sym_key, enc = envelope.encrypt(text, keys[1]) return envelope.decrypt(iv, sym_key, enc, keys[0])