function Encrypt(const Data: TBytes): TBytes;

 

Description

Use the Encrypt method to encrypt data with the certificate key. This method returns an encrypted data.

The maximum block size for PKCS2 padding mode should be 11 bytes less than a key size, and for OAEP padding mode - (2 + 2*HashLength) bytes less than a key size.

 

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

 

See also

Decrypt

 

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