block data portion now pure bytes when encrypted (barely tested), and improved config testing
This commit is contained in:
parent
d24d0fc315
commit
63b32f98df
6 changed files with 91 additions and 64 deletions
|
@ -101,7 +101,7 @@ def insert_block(data: Union[str, bytes], header: str ='txt',
|
|||
# Encrypt block data with forward secrecy key first, but not meta
|
||||
jsonMeta = json.dumps(meta)
|
||||
jsonMeta = crypto.encryption.pub_key_encrypt(jsonMeta, asymPeer, encodedData=True).decode()
|
||||
data = crypto.encryption.pub_key_encrypt(data, asymPeer, encodedData=True).decode()
|
||||
data = crypto.encryption.pub_key_encrypt(data, asymPeer, encodedData=False)#.decode()
|
||||
signature = crypto.encryption.pub_key_encrypt(signature, asymPeer, encodedData=True).decode()
|
||||
signer = crypto.encryption.pub_key_encrypt(signer, asymPeer, encodedData=True).decode()
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue