_Document.SetPasswordEncryptionOptions(String, String, Int32, Object) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Définit les options que Microsoft Word utilise pour chiffrer les documents protégés par mot de passe.
public void SetPasswordEncryptionOptions (string PasswordEncryptionProvider, string PasswordEncryptionAlgorithm, int PasswordEncryptionKeyLength, ref object PasswordEncryptionFileProperties);
abstract member SetPasswordEncryptionOptions : string * string * int * obj -> unit
Public Sub SetPasswordEncryptionOptions (PasswordEncryptionProvider As String, PasswordEncryptionAlgorithm As String, PasswordEncryptionKeyLength As Integer, Optional ByRef PasswordEncryptionFileProperties As Object)
Paramètres
- PasswordEncryptionProvider
- String
Argument de type String obligatoire. Nom du fournisseur du chiffrement.
- PasswordEncryptionAlgorithm
- String
Argument de type String obligatoire. Nom de l'algorithme de chiffrement. Word prend en charge les algorithmes de chiffrement stream.
- PasswordEncryptionKeyLength
- Int32
Argument de type Integer obligatoire. Longueur de la clé de chiffrement. Doit être un multiple de 8, en commençant à 40.
- PasswordEncryptionFileProperties
- Object
Objet facultatif. True pour que Word chiffre les propriétés de fichier. Valeur par défaut est True.
Remarques
Afin d'améliorer davantage la sécurité, n'utilisez pas les algorithmes de chiffrement faible (XOR) (ou « OfficeXor ») ou « Office97/2000 Compatible » (ou « OfficeStandard »).