Aspose::Pdf::Security::ICustomSecurityHandler::CalculateEncryptionKey method

ICustomSecurityHandler::CalculateEncryptionKey method

Calculate the EncryptionKey. Generally the key is calculated based on the UserKey. You can use values from EncryptionParams, which contains the current parameters at the time of the call. This value is passed as the key argument in Encrypt and Decrypt.

virtual System::ArrayPtr<uint8_t> Aspose::Pdf::Security::ICustomSecurityHandler::CalculateEncryptionKey(System::String password)=0
ParameterTypeDescription
passwordSystem::StringPassword entered by the user.

ReturnValue

The array of encryption key.

See Also