mirror of https://github.com/nucypher/nucypher.git
Add decrypt method
parent
825884ef0e
commit
b496480b3f
|
@ -13,3 +13,6 @@ class EncryptingKeypair(object):
|
|||
|
||||
def encrypt(self, data):
|
||||
return self.pre.encrypt(self.pub_key, data)
|
||||
|
||||
def decrypt(self, enc_data):
|
||||
return self.pre.decrypt(self.priv_key, enc_data)
|
||||
|
|
Loading…
Reference in New Issue