CryptoManager.BeginDecrypting

Syntax variant: Data in binary format

Syntax:

BeginDecrypting(<NotifyDescription>, <SourceData>)

Parameters:

<NotifyDescription> (required)

Type: NotifyDescription.
Contains a description of the procedure that will be called upon completing the decryption with the following parameters:
  • <DecryptedData> - decrypted data of the type BinaryData.
  • <AdditionalParameters> - value specified when the NotifyDescription object was created.

<SourceData> (required)

Type: String: BinaryData.
Encrypted data.
Data can be located in a file (in this case the name of file is specified) or represented as BinaryData.

Description of method variant:

Transfers decrypted data in the parameter of the type BinaryData.

Syntax variant: Save data to a file

Syntax:

BeginDecrypting(<NotifyDescription>, <SourceData>)

Parameters:

<NotifyDescription> (required)

Type: NotifyDescription.
Contains a description of the procedure that will be called upon completing the data decryption with the following parameters:
  • <FileName> - a name of the output file with decrypted data.
  • <AdditionalParameters> - value specified when the NotifyDescription object was created.
<FileName> - a name of the output file with decrypted data.
<AdditionalParameters> - value specified when the NotifyDescription object was created.

<SourceData> (required)

Type: String: BinaryData.
Encrypted data.
Data can be located in a file (in this case the name of file is specified) or represented as BinaryData.

Description of method variant:

Places decrypted data to a file.

Description:

Begins decrypting the encrypted data.
For proper data encryption it's necessary that:
1. the certificate linked with private key container should be installed in the repository of personal certificates;
2. the certificate should be specified as one of the recipient of encrypted data (described in parameter <RecipientList> of the method Encrypt).

Availability:

Thin client, web-client, thick client.

Note:

The exceptional situation is generated in case of error.

See also:

CryptoManager, method Decrypt

    

1C:Enterprise Developer's Community