I need to create a password protected excel.

Currently, I'm using Apache POI (WriteProtectWorkBook) which unfortunately allows the users to open the excel in Read only mode.

This is not recommended with the data that I'm handling.

Could you please let me know how we can achieve this?

Thanks in advance.