Aspose::Pdf::Security::ICustomSecurityHandler::Encrypt method

ICustomSecurityHandler::Encrypt method

Encrypt the data array.

virtual System::ArrayPtr<uint8_t> Aspose::Pdf::Security::ICustomSecurityHandler::Encrypt(System::ArrayPtr<uint8_t> data, int32_t objectNumber, int32_t generation, System::ArrayPtr<uint8_t> key)=0
ParameterTypeDescription
dataSystem::ArrayPtr<uint8_t>Data to encrypt.
objectNumberint32_tNumber of the object containing the encrypted data.
generationint32_tGeneration of the object.
keySystem::ArrayPtr<uint8_t>Key obtained by the CalculateEncryptionKey method

ReturnValue

The encrypted data.

See Also