Concept EasyXLS™ library enables you to protect your Excel file from unauthorized access by setting passwords for opening or / and modifying the document. If you set the password for opening the file, the Excel file will be encrypted.



EasyXLS allows you to create password protected Excel files and also to read password protected Excel files.



The library also provides methods for protecting the workbook structure and windows. An optional password can be set for this purpose. If the workbook is protected, the Excel file will be encrypted. The library allows you to create encrypted Excel files and also to read encrypted Excel files.



For Office 97-2003 documents, you may choose between RC4 (default encryption) or XOR (weak encryption). The default encryption for Office 2007-2013 documents is AES (Advanced Encryption Standard). Concept in action The below example shows how to create a password protected Excel file. The exported file is encrypted and a password is set for opening the Excel file.