Skip to content

Latest commit

 

History

History
63 lines (38 loc) · 1.53 KB

PowerPoint.Presentation.PasswordEncryptionKeyLength.md

File metadata and controls

63 lines (38 loc) · 1.53 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Presentation.PasswordEncryptionKeyLength property (PowerPoint)
vbapp10.chm583077
vbapp10.chm583077
PowerPoint.Presentation.PasswordEncryptionKeyLength
4a3d59e4-fd4d-cd8d-8d51-cca6ebd4b758
06/08/2017
medium

Presentation.PasswordEncryptionKeyLength property (PowerPoint)

Returns the key length of the algorithm Microsoft PowerPoint uses when it encrypts documents with passwords. Read-only.

Syntax

expression. PasswordEncryptionKeyLength

expression A variable that represents a Presentation object.

Return value

Long

Remarks

Use the SetPasswordEncryptionOptions method to specify the algorithm PowerPoint uses for encrypting documents with passwords.

Example

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

See also

Presentation Object

[!includeSupport and feedback]