function Decrypt(const Value: TBytes): IScEncryptorResult; overload;

function Decrypt(const Value: TStream; Count: Cardinal = 0): IScEncryptorResult; overload;

 

Description

The method decrypts the input data using the key, algorithm, and other parameters specified by the properties of the TScSymmetricEncryptor object.

The method returns a TScEncryptorResult interfaced object, which allows you to convert decryption result to the desired format.

Value - Holds data to be encrypted.
Count - The number of bytes to read from the Value parameter of the TStream type.
 

Note: If the decoding parameters (algorithm and hash) do not match the parameters used during encoding, the Decrypt method will raise an exception or incorrectly decrypt the input data.

 

See Also

TScEncryptorResult

Encrypt

SecureBridge Components, Copyright © 2007-2026 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support