Information Security Stack Exchange is a question and answer site for information security professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking to protect zip files that I will be regularly sending to a 3rd party.

I need to ensure strong confidentiality and non-repudation. I would like signing/encryption to be based on asymmetric keys to simplify key management.

Is PKCS#7 suitable for the use case described above?


The zip file can be signed and the result can be encrypted using PKCS#7 Cryptographic Message Syntax.

share|improve this question
up vote 3 down vote accepted

PKCS#7, now known as CMS, is a generic format for message with some content which is signed and/or encrypted. The content is any sequence of bytes so you can fit any kind of file in it, including Zip archives.

Of course CMS is just a tool. Using it won't magically sprinkle security everywhere. You will need to use it with some public-key infrastructure which will take care of distributing the public keys (as X.509 certificates). 95% of PKI is management procedures, not software.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.