title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
Presentation.PasswordEncryptionKeyLength property (PowerPoint) |
vbapp10.chm583077 |
|
|
4a3d59e4-fd4d-cd8d-8d51-cca6ebd4b758 |
06/08/2017 |
medium |
Returns the key length of the algorithm Microsoft PowerPoint uses when it encrypts documents with passwords. Read-only.
expression. PasswordEncryptionKeyLength
expression A variable that represents a Presentation object.
Long
Use the SetPasswordEncryptionOptions method to specify the algorithm PowerPoint uses for encrypting documents with passwords.
This example sets the password encryption options if the password encryption key length is less than 40.
Sub PasswordSettings()
With ActivePresentation
If .PasswordEncryptionKeyLength < 40 Then
.SetPasswordEncryptionOptions
PasswordEncryptionProvider:="Microsoft RSA SChannel Cryptographic Provider", _
PasswordEncryptionAlgorithm:="RC4", _
PasswordEncryptionKeyLength:=56, _
PasswordEncryptionFileProperties:=True
End If
End With
End Sub
[!includeSupport and feedback]