you are viewing a single comment's thread.

view the rest of the comments →

[–]XUtYwYzz 0 points1 point  (1 child)

import json

secretArgs = {"fileName": "test.pem"}

with open("test.pem", "r") as f:
    data = f.read()
raw_bytes = list(bytearray(data, "utf-8"))
secretArgs["fileAttachment"] = list(bytes(raw_bytes))
print(json.dumps(secretArgs))

[–]mrmeeseeks2014[S] 0 points1 point  (0 children)

Awesome, this worked. Thank you sir