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
merged 2 commits into from Feb 16, 2021

Conversation

Erior
Copy link
Contributor

@Erior Erior commented Feb 14, 2021

#539
#521

Could this be a solution?

@adamhathcock
Copy link
Owner

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

@Erior
Copy link
Contributor Author

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants