EncryptionAlgorithm

Document properties, Security and Signatures

Description

Returns the encryption algorithm used to encrypt the selected document.

The EncryptionStrength function can be used to determine the encryption key length.

Syntax

Delphi

Function TPDFlib.EncryptionAlgorithm: Integer;

ActiveX

Function PDFlib::EncryptionAlgorithm() As Long

DLL

int DLEncryptionAlgorithm(int InstanceID);

Return values

0The document is not encrypted
1RC4
2AES-128
3AES-256
4AES-256-GCM