[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.Password.SetPassword

SetPassword Method

SetPassword(string, CryptographicAlgorithmSid, int)

Sets the current password. If password is null or empty, password will be reset.

Declaration
public void SetPassword(string password, CryptographicAlgorithmSid sid = CryptographicAlgorithmSid.SHA_512, int spinCount = 50000)
Public Sub SetPassword(password As String, Optional sid As CryptographicAlgorithmSid = CryptographicAlgorithmSid.SHA_512, Optional spinCount As Integer = 50000)
Parameters
Type Name Description
string password

The password string.

CryptographicAlgorithmSid sid

The password hashing algorithm.

int spinCount

The count of hash transformations used in password generation.