Skip to content

Commit

Permalink
fix: compact raw text to RSA encrypt (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pandaft committed Mar 21, 2023
1 parent d4b10a8 commit 08406f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esurfingpy/esurfing.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def login(account: str, password: str,
"userName": account,
"password": password,
"rand": ocr_result,
})
}, separators=(',', ':'))
encrypted_data = rsa.encrypt(data.encode(), public_key)
login_key = binascii.b2a_hex(encrypted_data).decode()
time_taken = round(time.time() - log_time, 2)
Expand Down

0 comments on commit 08406f7

Please sign in to comment.