Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not so elegant perhaps for checking 7z encryption #572

merged 2 commits into from Feb 16, 2021


Copy link

@Erior Erior commented Feb 14, 2021


Could this be a solution?

Copy link

@adamhathcock adamhathcock commented Feb 15, 2021

Looks elegant enough to me. I don't know enough about the 7Zip spec off hand to know if that's correct though.

Copy link
Contributor Author

@Erior Erior commented Feb 15, 2021

Digging some more I don't think it is too far off

p7zip discussion on sourceforge

More complete might be to just detect that it starts with 06 xx xx xx

From 7zip DOC/Methods.txt
06.. - Crypto

F0 - Ciphers without hashing algo

  01 - [AES]
     0x - AES-128
     4x - AES-192
     8x - AES-256
     Cx - AES

     x0 - ECB
     x1 - CBC
     x2 - CFB
     x3 - OFB
     x4 - CTR

F1 - Combine Ciphers

  01 - [Zip]
     01 - ZipCrypto (Main Zip crypto algo)

  03 - [RAR]
     02 - 
     03 - Rar29AES (AES-128 + modified SHA-1)

  07 - [7z]
     01 - 7zAES (AES-256 + SHA-256)

@adamhathcock adamhathcock merged commit fa61072 into adamhathcock:master Feb 16, 2021
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants