cryptography - How does 7-zip check if the password you have provided is right? -


i'm trying understand how 7-zip recognizes if password have provided correct.

for example have file x.7z have password protected "password". before attempt opening it, interface asks me password. how 7zip check if password right before attempts unzip file , fail?

it's encrypting file using aes password key. these things try decrypt block knows value of (like header that's same every 7z file), , comparing decrypted value expects. if don't match, knows password incorrect.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -