miniTool/minitool3/encrypted文件结构.txt
2025-01-01 18:30:09 +08:00

14 lines
311 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

*.encrypted文件结构
(D)
4B: enc data + iv size 这4B可能没有
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 = 看顶上