feat: user merchant_id instead of user_id
This commit is contained in:
parent
152fe5baab
commit
3e0b480f0a
10 changed files with 286 additions and 187 deletions
|
|
@ -16,6 +16,8 @@ def get_shared_secret(privkey: str, pubkey: str):
|
|||
|
||||
def decrypt_message(encoded_message: str, encryption_key) -> str:
|
||||
encoded_data = encoded_message.split("?iv=")
|
||||
if len(encoded_data) == 1:
|
||||
return encoded_data[0]
|
||||
encoded_content, encoded_iv = encoded_data[0], encoded_data[1]
|
||||
|
||||
iv = base64.b64decode(encoded_iv)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue