Class EncryptionConstants
Encryption constants for SetStandardEncryption(byte[], byte[], int, int).
public sealed class EncryptionConstants
- Inheritance
-
EncryptionConstants
- Inherited Members
Fields
ALLOW_ASSEMBLY
The operation permitted when the document is opened with the user password.
public const int ALLOW_ASSEMBLY = 1024
Field Value
ALLOW_COPY
The operation permitted when the document is opened with the user password.
public const int ALLOW_COPY = 16
Field Value
ALLOW_DEGRADED_PRINTING
The operation permitted when the document is opened with the user password.
public const int ALLOW_DEGRADED_PRINTING = 4
Field Value
ALLOW_FILL_IN
The operation permitted when the document is opened with the user password.
public const int ALLOW_FILL_IN = 256
Field Value
ALLOW_MODIFY_ANNOTATIONS
The operation permitted when the document is opened with the user password.
public const int ALLOW_MODIFY_ANNOTATIONS = 32
Field Value
ALLOW_MODIFY_CONTENTS
The operation permitted when the document is opened with the user password.
public const int ALLOW_MODIFY_CONTENTS = 8
Field Value
ALLOW_PRINTING
The operation permitted when the document is opened with the user password.
public const int ALLOW_PRINTING = 2052
Field Value
ALLOW_SCREENREADERS
The operation permitted when the document is opened with the user password.
public const int ALLOW_SCREENREADERS = 512
Field Value
DO_NOT_ENCRYPT_METADATA
Add this to the mode to keep the metadata in clear text.
public const int DO_NOT_ENCRYPT_METADATA = 8
Field Value
EMBEDDED_FILES_ONLY
Add this to the mode to keep encrypt only the embedded files.
public const int EMBEDDED_FILES_ONLY = 24
Field Value
ENCRYPTION_AES_128
Type of encryption.
public const int ENCRYPTION_AES_128 = 2
Field Value
Remarks
Type of encryption. AES encryption algorithm will be used with the key length of 128 bits.
ENCRYPTION_AES_256
Type of encryption.
public const int ENCRYPTION_AES_256 = 3
Field Value
Remarks
Type of encryption. AES encryption algorithm will be used with the key length of 256 bits.
STANDARD_ENCRYPTION_128
Type of encryption.
public const int STANDARD_ENCRYPTION_128 = 1
Field Value
Remarks
Type of encryption. RC4 encryption algorithm will be used with the key length of 128 bits.
STANDARD_ENCRYPTION_40
Type of encryption.
public const int STANDARD_ENCRYPTION_40 = 0
Field Value
Remarks
Type of encryption. RC4 encryption algorithm will be used with the key length of 40 bits.