function Decrypt(const Data: TBytes; Padding: TScPaddingMode = pmPKCS2): TBytes;

 

Description

Use the Decrypt method to decrypt data with the private key by using the specified padding. This method returns the source data that was encrypted by the Encrypt method.

If the key is not private (IsPrivate = False), the exception will be raised.

 

Note: If the Ready property is False, the key will be automatically loaded.

 

See also

Encrypt

 

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