Table of Contents

Method VerifyWriteProtection

Namespace
DocWright.Cryptography
Assembly
DocWright.Cryptography.dll

VerifyWriteProtection(DocumentProtection, string, ResourceLimits?)

Checks a password against the write-protection hash a document records.

public static bool VerifyWriteProtection(DocumentProtection protection, string password, ResourceLimits? limits = null)

Parameters

protection DocumentProtection

The protection settings.

password string

The password to check.

limits ResourceLimits

The resource caps, or null for the defaults.

Returns

bool

true when the password matches.

Exceptions

ArgumentNullException

An argument is null.