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