
## validatePassword(password) {#string}

Returns ``true`` if the specified password is the same as the write-protection password the document was protected with.
If document is not write-protected with password then returns ``false``.



```js
validatePassword(password: string)
```

| Parameter | Type | Description |
| --- | --- | --- |
| password | string |  |

### See Also

* module [Aspose.Words.Settings](../../)
* class [WriteProtection](../)

