Demonslay335

Dharma Encrypted File Format

Apr 6th, 2020
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. # File
  2.  
  3. Length | Description
  4. -----------------------------
  5. ? | AES(FileKey, FileIV, FileContents)
  6. MetadataSize | Metadata
  7. ? | OriginalFilename (UTF-16)
  8. 0x06 | FileMarker
  9. 0x14 | SHA1(RSAModulus)
  10. 0x10 | FileIV
  11. 0x04 | PaddingCount
  12. 0x80 | RSA1024(PublicKey, FileKey|ComputerID)
  13. 0x04 | MetadataSize
  14.  
  15. # Metadata
  16.  
  17. Length | Description
  18. ---------------------
  19. 0x04 | 0x00
  20. 0x04 | EncryptionType (1=partial, 2=full)
  21. 0x04 | Magic (0C FE 7A 41 - supposedly different partial vs full)
  22. 0x04 | Size of header - original filename size
  23. 0x04 | Number of encrypted regions (partial only)
  24. 0x04 | Size of encrypted region (partial only)
  25. 0x04 | CRC32(EncryptedRegions)
  26. 0x04 | Offset to encrypted data (partial only)
Add Comment
Please, Sign In to add comment