protection Property
Specifies a password protection level.
Syntax
def get_protection() -> int: ... def set_protection(value: int) -> None: ...
protection = property(get_protection, set_protection)
Default Value
0
Remarks
This property specifies the complexity of key derivation function for password-protected documents.
Allowed values:
pptNone | 0 | Key is not encrypted |
pptLow | 1 | Only the password hash is used to derive the secret key |
pptNormal | 2 | Password hash with salt is used to derive the secret key |
pptHigh | 3 | Hash from multiple passwords and salt are used for key derivation |