Home All Groups Group Topic Archive Search About

How to - PKCS#7 in c#

Author
30 Jun 2006 3:03 PM
kplkumar
Hi

I am new to cryptography.
Our application is supposed to send out an XML message to an external
system. The requirement is to encrypt it with PKCS#7? How do I do this
in c# code. I could not find any examples.

Thanks in advance.

Author
30 Jun 2006 3:27 PM
Joe Kaplan (MVP - ADSI)
Have you looked at the CMS message stuff in .NET 2.0
(System.Security.Cryptography.Pkcs)?  That's how PKCS #7 is supported in
..NET.  If you aren't using .NET 2.0, you will have a fair amount of p/invoke
to the crypto API or CAPICOM to achieve similar goals.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
Show quoteHide quote
"kplkumar" <kplku***@gmail.com> wrote in message
news:1151679805.359224.310010@d56g2000cwd.googlegroups.com...
> Hi
>
> I am new to cryptography.
> Our application is supposed to send out an XML message to an external
> system. The requirement is to encrypt it with PKCS#7? How do I do this
> in c# code. I could not find any examples.
>
> Thanks in advance.
>