miniTool/minitool3/encrypted文件结构.txt

14 lines
311 B
Plaintext
Raw Normal View History

2025-01-01 17:35:02 +08:00
*.encrypted文件结构
(D)
2025-01-01 18:30:09 +08:00
4B: enc data + iv size 这4B可能没有
2025-01-01 17:35:02 +08:00
16B: iv
{data size}B: enc data(AES256 encryption)
SecretKey = "dB3aqcLtAmBd"
KeyBase = "RWd3NusabzRc"
hmac = new HMACSHA256(Encoding.UTF8.GetBytes(SecretKey))
AESKey = hmac.ComputeHash(Encoding.UTF8.GetBytes(KeyBase))
iv = 看顶上