xlsgen > overview > Encryption

 

xlsgen makes it possible to encrypt XLS files. All it takes is a password. When the file is encrypted, opening the file in Excel will result in a prompt asking for the password to be entered.

Note that encrypted files cannot be opened in xlsgen currently. Perhaps this will be supported sometimes in the future.

The password must be less or equal than 15 characters.

To encrypt an XLS file :

Java code
// pass "abcd" as password
workbook.putEncryptPassword("abcd");
VB code
' pass "abcd" as password
workbook.EncryptPassword = "abcd"
C# code
// pass "abcd" as password
workbook.EncryptPassword = "abcd";
C++ code
// pass "abcd" as password
workbook->EncryptPassword = L"abcd";

 

xlsgen documentation. © ARsT Design all rights reserved.