14 lines
311 B
Plaintext
14 lines
311 B
Plaintext
*.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 = 看顶上
|