Omnibus commited on
Commit
ded7877
·
1 Parent(s): f7093ab

Update app_og.py

Browse files
Files changed (1) hide show
  1. app_og.py +4 -2
app_og.py CHANGED
@@ -80,9 +80,11 @@ def validate_signature(public_key: bytes, signature: bytes, transaction_data: by
80
 
81
  def encrypt_text(data,pub_im,priv_im,address):
82
  pub_key = stegan2.decode(pub_im)
83
-
 
 
84
  data = data.encode("utf-8")
85
- data = sign(data,priv_im)
86
 
87
 
88
  recipient_key = RSA.import_key(pub_key)
 
80
 
81
  def encrypt_text(data,pub_im,priv_im,address):
82
  pub_key = stegan2.decode(pub_im)
83
+ priv_key = stegan2.decode(in2)
84
+ #print(f'priv_key:: {priv_key}')
85
+ private_key = RSA.import_key(priv_key)
86
  data = data.encode("utf-8")
87
+ data = sign(data,private_key)
88
 
89
 
90
  recipient_key = RSA.import_key(pub_key)