mirror of
https://github.com/ComradCollective/Comrad
synced 2024-11-05 21:20:51 +00:00
updates
This commit is contained in:
parent
6cecc48e09
commit
5bc39be841
@ -39,11 +39,14 @@ class KomradeSymmetricKey(KomradeKey):
|
||||
def encrypt(self,msg,**kwargs):
|
||||
if issubclass(type(msg), KomradeKey) or issubclass(type(msg),KomradeEncryptedKey):
|
||||
msg=msg.data
|
||||
print('??? dec',msg,kwargs)
|
||||
|
||||
return self.cell.encrypt(msg,**kwargs)
|
||||
def decrypt(self,msg,**kwargs):
|
||||
print('??? dec',msg,kwargs)
|
||||
if issubclass(type(msg), KomradeKey) or issubclass(type(msg),KomradeEncryptedKey):
|
||||
msg=msg.data
|
||||
print('??? dec',msg,kwargs)
|
||||
|
||||
try:
|
||||
return self.cell.decrypt(msg,**kwargs)
|
||||
except TypeError:
|
||||
|
Loading…
Reference in New Issue
Block a user