Verify Password of Encrypted Files
Contents
[
Hide
]
If Excel (xlsx, xlsb, xls, xlsm) and Open office (ODS) files are locked with password, Aspose supports simple password verification without parsing specific data of the files.
Verify the password of the encrypted file
To verify the password of the encrypted file, Aspose.Cells for .NET provides the VerifyPassword method. These methods accept two parameters, the file stream and the password that needs to be verified. The following code snippet demonstrates the use of the VerifyPassword method to verify whether the provided password is valid or not.