Who is going to decrypt and decompress the zip file?
If UiPath robot do it, it may be better to use EncryptFile /DecryptFile activity in UiPath.Cryptography,activities package. it will encrypt/decrypt whole the zip file including directory information.