today's lesson

today's lesson
Page content

日常记录

0x01 通过Python生成AESKey

>>> import os
>>> os.urandom(16).hex()
'53d5c8c572a64ca487425ca81f06d696'

0x02 通过openssl命令加密数据

# 加密
openssl enc -aes-256-ecb -in test.txt -out result.txt

# 解密
openssl enc -d -aes-256-ecb -in result.txt -out result2.txt