Esempio n. 1
0
 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())
Esempio n. 2
0
	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())
Esempio n. 3
0
	def round_trip(self, keys, text):
		iv, sym_key, enc = envelope.encrypt(text, keys[1])
		return envelope.decrypt(iv, sym_key, enc, keys[0])
Esempio n. 4
0
 def round_trip(self, keys, text):
     iv, sym_key, enc = envelope.encrypt(text, keys[1])
     return envelope.decrypt(iv, sym_key, enc, keys[0])