Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8161817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:34:44+00:00 2026-06-06T18:34:44+00:00

I have created password protected zip file which has xls file with the help

  • 0

I have created password protected zip file which has xls file with the help of this http://java.sys-con.com/node/1258827.

My question is ,Is there any java api which will create password protected xls file instead of zip file.
I want to directly apply password on xls file.Encryption/Decryption is the option but want to prompt when when double clicked on file.

edit:
I got this
HSSFSheet.protectSheet("xyz");but it only makes sheet read only.

Even I have tried this hssfworkbook.writeProtectWorkbook("abc", "abc");but its not prompting for password.

Edit1:There is the method in org.apache.poi.hssf.record.crypto.Biff8EncryptionKey package to open password protected excel file org.apache.poi.hssf.record.crypto.Biff8EncryptionKey.setCurrentUserPassword(password);
Is there any method to set password on unprotected excel file?

Edit2:
I tried JExcel API

Workbook w=Workbook.getWorkbook(new File("c:\\employees22533.xls"));
Sheet ws=null;
ws=w.getSheet("Employee List");
SheetSettings sh=ws.getSettings();
sh.setPassword("abc");

But its not setting any password

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T18:34:45+00:00Added an answer on June 6, 2026 at 6:34 pm

    I’ve personally used JExcelApi but I do not remember having seen something about password protection into it. As far as JExcelApi is concerned there are a number of features where the answer is known to be “No”:

    • Pivot Tables
    • Dropdown Lists
    • Rich Text in cells
    • Set repeating rows
    • Password Protection

    I personally think that if Password Protection would’ve been possible(with open source api’s)
    Their would be a lot of tutorials available on internet and you could search them simply by a quick Google search, Unfortunately none of the freely available Java spreadsheet APIs seems to support writing encrypted spreadsheets.

    However If you’re willing to use commercial api/library then see this

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a web service which takes a username and password as parameters
I have this test case def setUp(self): self.user = User.objects.create(username=tauri, password='gaul') def test_loginin_student_control_panel(self): c
I have created a file with XmlDocument xmldoc = new XmlDocument(); Can I make
i have created a simple public ref class in the vc++ project, which is
I have created a website from File->new-> Web Site. i am trying to go
I have created an Axis web service as a Java 6 application running on
I have an Access file on a server which my colleagues will update regularly
Is any one have an idea to how to implement a password protected PDF
I have created this login page. <asp:Label id=Label2 style=Z-INDEX: 103; LEFT: 112px; POSITION: absolute;
I have a private key protected with a password to access a server via

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.