Generate random AES key, convert it to string and back to byte (Python)

前端 未结 0 1692
滥情空心
滥情空心 2021-01-04 06:26

my problem is the following. For an AES encryption I generate a random key of size 32.

random_key = os.urandom(32)

Output: b\'\\xf3\\

相关标签:
回答
  • 消灭零回复
提交回复
热议问题