How to set password for a zip file?

I am able to add files to a zip file using java.util.zip.ZipOutputStream. I'd like to set password for the generated zip file, but could not find any relevant API in JDK doc.
How to do that in Java? Maybe using a third party library?
Any suggestions are welcome.
Thanks.

Thanks bro, I am looking at the Zip4J :) one of its feature is "Read/Write password protected Zip files" :)

Similar Messages

  • How to set password for a zip file and should be checked when reading that

    Hi friends,
    how to set password for a zip file and should be checked when reading that file???
    thanks.
    Praveen Reddy.J

    Heyy man, i think, u did not get my problem.
    all i have to do is:
    i have to create a zip file, and we should secure it with password when creating. and whenever the user wants to open that zip file he should provide correct passowrd otherwise he could not read that file. So, we should check for that also.
    Tanks for reply.

  • Creation of Password for the Zip file which are sent thru email

    Dear Experts,
                          how to create a password for the zip file which is sent via email through a abap program.
                                    OR
    how to create a password in abap for a zip file.
    Thanks...
    Vishal
    Edited by: vishal_reddy786 on Jun 22, 2010 7:31 AM

    UNSOLVED

  • How to set  password for BPEL domain

    Hi,
    I am new to SOA.
    I want to setup client-server environment for few developers.
    I installed SOA 10.1.3.3 in the server machine.
    And I created few domains in BPEL, one for each developer.
    It didn't ask me to set the password while creation of the domain.
    Please let me know how to set password for newly created domain so that each developer login to his/her own domain and manage processes.
    Thanks!!!

    Thanks for the prompt response.
    What roles should I give to my developers to allow them to manage their services in ESB control, BPEL control, WSM control.
    And I would like to know how to set the password for a BPEL domain too.
    Message was edited by:
    user644377

  • How to set password for every application

    Hi,
    As a administrator how to set password for every weblication in sharepoint 2013.
    Is there any way to set?
    Thanks,

    Who's password are you trying to set? Please provide more details.

  • How to set password for Local are connection?

    How to set password for Local are connection?

    do you mean the 802.1x authentication?
    check out links below:
    http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2950/software/release/12-1_9_ea1/configuration/guide/scg/Sw8021x.html
    http://technet.microsoft.com/en-us/network/bb545365.aspx
    Every second counts..make use of it. Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
    IT Stuff Quick Bytes

  • How to set password for photos from home screen? Please help.

    Hi,
    Can anyone pls help to set password for my Iphone 4s.
    My friends/family often use my phone for gaming purpose. I don't want them to see my photos/gallery/videos.
    How can I protect my personal things from others?
    Thnx.
    Rgds.

    There is no way to set a password for photos. You could upload all of your photos to something like DropBox, then sign out of the app. Or, you could only let people you trust to respect your privacy touch your phone.

  • Setting default for opening zip files IE11

    Is there a setting in IE11 that permits setting a default that zip files will be opened and not saved. The option is not where I thought it should be.  Thank you.

    Hi,
    Tools>View Downloads... locate your download in the list (if you have not already deleted it. X button on the RHS of the list item).
    At the bottom of the Downloads manager there is an options link where you can set the folder where your downloads will be copied to during the TCP download process.
    Regards.
    Questions regarding Internet Explorer 8, 9 and 10 and Internet Explorer 11 for the IT Pro Audience. Topics covered are: Installation, Deployment, Configuration, Security, Group Policy, Management questions. If you are a consumer looking for answers or to
    raise a question, it's highly recommended you head on over to http://answers.microsoft.com/en-us . If possible include links to any websites you are having problems with your questions.
    Rob^_^

  • How to set password for iOS7

    how do I set up the password for iOSi7 which I downloaded to my iPad mini?  It refuses to accept my Apple Password, and my device says "iPad is disabled"

    Follow these instructions to resolve a forgotten passcode:
    http://support.apple.com/kb/HT1212

  • How to set Password for Xellerate user in OIM

    I am using recon API's and creating Xellerate user, unfortunately the recon is not accepting USR_PASSWORD which is the field name defined in OIM
    Can somebody please let me know how to set this password for Xellerate user??
    Thank you in advance for your response. (this is go-live issue you know what that means :-)

    Hi,
    If you are doing reconciliation and trying to reconcile the password as well. Then you must map the Resource Object attribute for the password field to the 'Identity' field of OIM. You can find this field in the 'Reconciliation Field Mappings' section for Xellerate User. Just map the field which you want to be set as OIM user password in the section and you are done.

  • Password for a zip file

    Dear,
    We have a procedure which compress and email a file (account stmt) to 100s of customers daily. Please give idea on protecting that zip file with password before emailing.
    It is something similar to credit cared statement where only the recipient should able to open.
    I have searched in many sites, it seems it is possible by Unix but we need in PL/SQL
    Thanks in advance
    Kim

    944500 wrote:
    Dear,
    We have a procedure which compress and email a file (account stmt) to 100s of customers daily. Please give idea on protecting that zip file with password before emailing.
    It is something similar to credit cared statement where only the recipient should able to open.
    I have searched in many sites, it seems it is possible by Unix but we need in PL/SQL
    Thanks in advance
    Kimhttp://www.lmgtfy.com/?q=open+source+pgp

  • How to set password for IIAS admin

    I have oracle IAS on linux, I would like to
    set a password for IAS admin.
    Thanks

    Log in to DSCC, "Settings" tab, "Directory Service Managers" tab, click on the admin username you want to manage and follow the prompts.

  • How to set password for SCC agent on IQ16 SP8

    Hi,
    Just installed a fresh SAP IQ16 SP08 and wasn't asked for setting sccagent on setup. How to configure sccagent account, to authorize it on SCC?

    Go to Apple Menu > System Preferences > Users & Groups.
    Also you may want to consider FileVault as it provides a lot more protection for the data on your MacBook Air than just having a password. There is more information at OS X: About FileVault 2 - Apple Support

  • How to set password for X509Anchors keychain

    I'm trying to add a certificate, but the X509Anchors keychain is demanding a password. I've never set one - it must be some standard thing; anyone know what it is? If not, I'm thinking I'd just change it to something I know. I hear that you have to be root or system to do it. Can someone tell me how to authenticate as root or system to change the password in the Keychain app, or how to do it in terminal?
    Thanks
    Mike

    Well, let's see... Over at Purdue University, they say to use your administrative account password to unlock the X509Anchors keychain. Try that first.
    I tried it, and it didn't work for me. I tried it from an administrative account, and it still didn't work. Over on MacOSXHints, someone says that it shouldn't be necessary to add the certificate to the X509Anchors keychain in particular -- your login keychain should suffice (if you will only be using it from that account). If you don't need to make it work for all accounts on your Mac, try that.
    Some people say that you can't "unlock" the X509Anchors keychain, but if you double-click on a certificate, you can still add it to the keychain by entering your (presumably administrative) password.
    I haven't found an answer for "unlocking" the X509Anchors keychain in Keychain Access if your admin password doesn't work -- or how to recover from the situation. No clues on Apple's support site.
    A search on the Discussion forums turns up this thread; seems there are a number of people with this problem.
    Powerbook G4 1GHz   Mac OS X (10.3.9)  

  • How to set password for dbxml in java program

    When I calling XmlManager.openContainer() by a XmlContainerConfig object set to XmlContainerConfig.setEncrypted("mypass")
    it always says:
    BDB XML: Database environment not configured for encryption
    but I can not find the way to construct the Environment for the database,
    When I use:
    envcfg = EnvironmentConfig.DEFAULT;
    envcfg.setEncrypted("mypass");
    env = new Environment(new java.io.File("/some/path/"), envcfg);
    it says:
    java.io.FileNotFoundException: No such file or directory
    at com.sleepycat.db.internal.db_javaJNI.DbEnv_open(Native Method)
    at com.sleepycat.db.internal.DbEnv.open(DbEnv.java:317)
    at com.sleepycat.db.EnvironmentConfig.openEnvironment(EnvironmentConfig.java:3886)
    at com.sleepycat.db.Environment.<init>(Environment.java:93)
    at T.init(T.java:169)
    at T.<init>(T.java:35)
    at T.main(T.java:204)

    Hi,
    Please follow Vyacheslav's advice. In addition, make sure that the path to the environment really exists. The Environment() construct will not create the directory structure if it does not exist.
    Also, note that containers cannot be converted to an encrypted format after they have been created. You'll need to dump and re-create them.
    Another remark; you've configured encryption for the environment:
    envcfg.setEncrypted("mypass");Since the container is opened within an XmlManager's underlying environment which is configured for encryption you shouldn't set an encryption password at the container's level:
    XmlContainerConfig.setEncrypted("mypass");http://www.oracle.com/technology/documentation/berkeley-db/xml/java/com/sleepycat/db/DatabaseConfig.html#setEncrypted(java.lang.String)
    The environment wide encryption password will be used to encrypt data in the databases, containers, opened within that environment. Otherwise, if you want to encrypt stores (databases/containers) individually or encrypt just some of them, you'll need to not specify an encryption password at the environment's level and set it only at store's level.
    Regards,
    Andrei

Maybe you are looking for