Add encryption method

pull/43/head
tuxxy 2017-09-18 11:28:03 -07:00
parent 4058897d55
commit 825884ef0e
1 changed files with 3 additions and 0 deletions

View File

@ -10,3 +10,6 @@ class EncryptingKeypair(object):
else:
self.priv_key = privkey_bytes
self.pub_key = self.pre.priv2pub(self.priv_key)
def encrypt(self, data):
return self.pre.encrypt(self.pub_key, data)