TScCMSProcessor, TScFileStorage example

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
tam
Posts: 15
Joined: Wed 24 Nov 2010 08:07
Location: Germany

TScCMSProcessor, TScFileStorage example

Post by tam » Fri 15 Jul 2022 14:11

Hello,

I struggle to en- and decrypt a file using TScCMSProcessor and TScFileStorage. The tagret is to encypt a text file with a public key and decrypt it with a private key. I already have created a certificate, a private and a public key. Also I have created a user, but honestly I have no idea how this all should go together.

I found nearly no documentation for TScCMSProcessor, so I kindly ask, if someone can provide an example code doing this.

Thanks in advance.

tam
Posts: 15
Joined: Wed 24 Nov 2010 08:07
Location: Germany

Re: TScCMSProcessor, TScFileStorage example

Post by tam » Thu 21 Jul 2022 12:59

Hi,

any help is much appreciated...

Thanks.

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Re: TScCMSProcessor, TScFileStorage example

Post by Dimon » Mon 01 Aug 2022 13:03

Please view the following topics: viewtopic.php?f=27&t=37040&p=128835

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Re: TScCMSProcessor, TScFileStorage example

Post by Dimon » Mon 01 Aug 2022 13:05

To encrypt data just call the TScCMSProcessor.Encrypt method, specifying the encrypted data as an input parameter of the method.
To decrypt data call the TScCMSProcessor.Decrypt method, specifying the enveloped CMS/PKCS #7 message as an input parameter of the method.

Post Reply