Export password protected Excel file and encrypt Excel file using EasyXLS component! XLSX, XLSM, XLSB, XLS file in ASP classic.
https://www.easyxls.com/manual/tutorials/asp/encrypt-excel-file.html