Share via


Document.SetPasswordEncryptionOptions 메서드

Microsoft Office Word에서 문서를 암호로 암호화하는 데 사용하는 옵션을 설정합니다.

네임스페이스:  Microsoft.Office.Tools.Word
어셈블리:  Microsoft.Office.Tools.Word(Microsoft.Office.Tools.Word.dll)

구문

‘선언
Sub SetPasswordEncryptionOptions ( _
    PasswordEncryptionProvider As String, _
    PasswordEncryptionAlgorithm As String, _
    PasswordEncryptionKeyLength As Integer, _
    ByRef PasswordEncryptionFileProperties As Object _
)
void SetPasswordEncryptionOptions(
    string PasswordEncryptionProvider,
    string PasswordEncryptionAlgorithm,
    int PasswordEncryptionKeyLength,
    ref Object PasswordEncryptionFileProperties
)

매개 변수

  • PasswordEncryptionProvider
    형식: System.String
    암호화 공급자의 이름입니다.
  • PasswordEncryptionAlgorithm
    형식: System.String
    암호화 알고리즘의 이름입니다.Word에서는 스트림 암호화 알고리즘을 지원합니다.
  • PasswordEncryptionKeyLength
    형식: System.Int32
    암호화 키 길이입니다.40부터 시작하고 8의 배수여야 합니다.
  • PasswordEncryptionFileProperties
    형식: System.Object%
    Word에서 파일 속성을 암호화하려면 true를 지정합니다.기본값은 true입니다.

설명

보다 나은 보안을 위해서는 XOR(Weak Encryption)(OfficeXor)이나 "Office97/2000 Compatible"(OfficeStandard) 알고리즘은 사용하지 마십시오.

.NET Framework 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

Document 인터페이스

Microsoft.Office.Tools.Word 네임스페이스