79161127

Date: 2024-11-06 01:33:10
Score: 2
Natty:
Report link

Cheers to @Kache for mentioning what should have been obvious: just base64 encode to send plaintext.

For future reference, this is how I did so.

Client-side:

tag   = base64.b64encode(tag)
nonce = base64.b64encode(nonce)
# tag and nonce are packed into the payload dictionary
requests.post(url, json=payload, verify="myShnazzyCertificate.pem")

Server-side:

payload = flask.request.json

# tag and nonce are unpacked from the above payload dictionary and then
tag        = base64.b64decode(tag)                                              
nonce      = base64.b64decode(nonce)

# ... tag and nonce are used successfully to decrypt data
Reasons:
  • Blacklisted phrase (1): Cheers
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Kache
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ryan Farber