Decrypt Files with certificate

  • Thread starter Thread starter Jens Süßmeyer
  • Start date Start date
J

Jens Süßmeyer

Hello,

we want to build a solution to receive mails with encrypted content
(XML-Files,etc). A Service will collect these mail from one Inbox, will
decrypt the attachment and store them in a SQL Server Database.

But the point is, that i didn´t find anything about the decryption of files
with certificates in C#. Is there nothing in there ? I know that there are
workflow in BIZTalk to decrypt files via certificate, but we don,t have
BIZTalk and won´t buy it in future.

Can anyone give me a hint where to start ?

Thanks.

Jens.
 
Jens,

You should be able to get the public key on the certificate using the
GetPublicKey method on the X509 certificate. Once you have that, you should
be able to pass it to any symmetric algorithm that takes a key of that size.

Hope this helps.
 
Back
Top