CryptoManager.Decrypt

Syntax variant: Data in return value

Syntax:

Decrypt(<SourceData>)

Parameters:

<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.

Syntax variant: Save data to a file

Syntax:

Decrypt(<SourceData>, <OutputData>)

Parameters:

<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.

<OutputData> (required)

Type: String.
Contains a name of output file with decrypted data.

Description of method variant:

Places decrypted data to a file. Returns Undefined.

Returned value:

Type: Undefined; BinaryData.

Description:

Decrypt 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, server, thick client, external connection.

Note:

The exceptional situation is generated in case of error.

See also:

CryptoManager, method BeginDecrypting

    

1C:Enterprise Developer's Community