Verify Password Used to Protect the Worksheet
Contents
[
Hide
]
Aspose.Cells for Python via .NET APIs have enhanced the Protection class by introducing some useful properties & methods. One such method is the verify_password which allows specifying a password as an instance of string and verifies if the same password has been used to protect the Worksheet.
The Protection.verify_password method returns true if the specified password matches the password used to protect the given worksheet and false if the specified password does not match. Following piece of code uses the Protection.verify_password method in conjunction with Protection.is_protected_with_password property to detect the password protection, and verifies the password.