login about faq

Is it possible to encrypt a file using pkcs7 with multiple certificates?

Our scenario :

· we need to send an encrypted file to more users.

· The file needs to be encrypted with aes256 and its key with each user public key.

· Every user can get the file and decrypt it using its private keys.

asked Jun 27 '13 at 10:22

chilkat's gravatar image

chilkat ♦♦
11.8k316358421


Yes, if you wish to create binary PCKS7, then you would use Chilkat Crypt. The code is the same as for encrypting with one certificate, except that the AddEncryptCert method should be called once per certificate prior to encrypting. (see http://www.chilkatsoft.com/refdoc/csCrypt2Ref.html )

If producing S/MIME is desired, then it can be accomplished using Chilkat MIME. Again, the code would be the same as for encrypting MIME with a single certificate, except that the Mime.AddEncryptCert method is called once per certificate. (see http://www.chilkatsoft.com/refdoc/csMimeRef.html )

There are already online examples for PKCS7 encrypting a file on www.example-code.com.

link

answered Jun 27 '13 at 10:26

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×12
×7
×4
×3

Asked: Jun 27 '13 at 10:22

Seen: 1,258 times

Last updated: Jun 27 '13 at 10:26

powered by OSQA