How to create password protected zip in java?
I want to create a password protected zip file in java...java.util.zip does not support this...how to do this???
Someone please help...
Thanks for Reply"[email protected]"
Till today whatever i got is this------
In java there is no way to make a password protected zip...java.util.zip package does not support this thing...
To do this we require Third party API---
Two third party Api i got...
one is "CHILKAT API for java"
and another one is "IPWORKS"http://www.componentsource.com/products/ipworks-zip-java-desktop/index.html
but both of these API are paid...
Even this problem has been reportd as bug in the bug database....
And the other way is related with Class Process Builder of java...
If someone knows more about this then tell me...
Similar Messages
-
How to create password protected folder (with unlimited storage) on Mac?
I want to create password protected folder on my mac. I tried the method where you create a dmg file and mount it whenever you want to use the folder and unmount it when you don't. However, this method only lets me store, for example, 2 gb data. I cannot store beyong that level as an error message pops up saying... "the following files cannot be copied because there is not enough storage space in the dmg file"
How can I create a passpord protected folder which can store as much available space that is on my mac?
Is there an application that does that? Suggest me some names if someone already is using something like that.
Thanks much!You need to choose the size of the image when you create it. If you are getting that message, you only set the image to hold 2GB of data.
If you choose a Sparse Disk Image or a Sparse Bundle Disk Image, you can set it to any size, however, it will only be able to store up to the space available on your Hard Disk. Physically, it will only be the size of the stuff you saved into it, but It doesn't shrink automatically when you remove things.
A Sparse Bundle differs from a Sparse Image in that it writes the contents to small files so that when Time Machine sees changes, it only backs up the small file change, not the 100 GB (or whatever) of the total image size.
Notice that having created a 10 TB disk image (as shown above), there is only 80 GB available on the mounted image as that is all the space I have available on the 500 GB drive. -
Generate password protected zip file
Hi,
I have a requirement of creating password protected zip file.
Any guidance would much appreciate.
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
Thanks in advance
PrashantDear,
I've complied mentioned code but it showed below mentioned error.
Warning: Package Body created with compilation errors.
SQL> show err
Errors for PACKAGE BODY AS_ZIP3:
LINE/COL ERROR
67/5 PL/SQL: Statement ignored
67/15 PLS-00201: identifier 'DBMS_CRYPTO' must be declared
70/7 PL/SQL: Statement ignored
70/16 PLS-00201: identifier 'DBMS_CRYPTO' must be declared
74/9 PL/SQL: Statement ignored
74/18 PLS-00201: identifier 'DBMS_CRYPTO' must be declared
92/7 PL/SQL: Statement ignored
92/42 PLS-00201: identifier 'DBMS_CRYPTO' must be declared
97/5 PL/SQL: Statement ignored
97/14 PLS-00201: identifier 'DBMS_CRYPTO' must be declared
SQL>
Thanks,
Prashant -
How create encrypted/password-protected zip file?
Any idea if there's a way with the Java API to create an encrypted and password-protected ZIP file? I know how to create a zip file with Java, but I need encryption and password protection.
Thanks for the link, but that's not a solution. It's 3 years old (and still not resolved) and I'm looking for a Java solution.
-
Library that will let one create a password protected zip file
Hello All, In my last post, I was not clear, in the explanation of my requirement so that could be a reason for no replies
I wanted to know whether there are any Java libraries that I can use to create a password protected zip file which will be recognized by WINZIP
Will hope to hear back .
Thanks againThanks for the mail and information. So, from my
understanding, there are no Java libraries thatare
free that will let you create a password protected
zip file that WINZIP recognises.
Please let me know.
ThanksThere might be free Java APIs that could do that. I
just stated that I have not come across any. You can
google and see if you can find any free APIs.
The other way to do it is to write your own code for
password protecting the zip files created by
java.util.zip. A more time consuming solution but a
solution nonetheless. But with this solution you
would run into the problem of compatibility with
winzip.
Another solution would be to see if you can dig out
some command based zip utility (I am not sure if
there is one available for Windows but gzip comes to
mind on Unix based systems) and use Runtime.exce()
from your java source code to execute that command.
I am not aware of any other solution. Hope this helps.thanks again for the reply.
Can you throw more light on this statement
"Another solution would be to see if you can dig out some command based zip utility (I am not sure if there is one available for Windows but gzip comes to mind on Unix based systems) and use Runtime.exce() from your java source code to execute that command."
regarding the command based zip utility, does this provide a password protected zip file, so that winzip will understand and encode it?.
Please let me know.
Thanks -
Creating/Extracting password protected zip files in AIR
Hello,
Does any one have any idea about creating/extracting password protected zip files in AIR. I am aware of FZip but it does not has the feature to password protect.
Any help would be appreciated.
Thank you
VinSatHere's some you could try. The first two links are to zip utilities for OS X. I can't tell you if they'll do what you need, I just looked for zip programs that work in OS X.
The third link is for the free Stuffit Expander. The last link is the results for "zip" at VersionTracker. You'll just have to try a bunch of them to find one that hopefully works.
http://mac.softpedia.com/get/Utilities/MacZi.shtml
http://www.maczipit.com/download.html
http://my.smithmicro.com/mac/stuffit/expander.html
http://www.versiontracker.com/php/qs.php?mode=basic&action=search&str=zip&srchAr ea=macosx&submit=Go -
How to set Password protection in excel using java
Dear all,
I have no idea to write a java program that how to set password protection in excel. Please give me some solution using java tools. Thank a lot!
Regards,
kzyoDear Bamkin ,
I used your code and paste it in my program. The error is as the follow:
Code:
stmnt = c.createStatement();
String query = "select StudentNumber, Email, New_Email_Address from [Sheet1$] where Len(New_Email_Address) > 0";
System.out.println(query);
rs = stmnt.executeQuery(query);
stmnt.executeUpdate("SET PASSWORD=PASSWORD('Test')");
Error:
(Remark: Invalid SQL statement)
java.sql.SQLException: [Microsoft][ODBC Excel Driver] �����I SQL ���q���G�a����'DELETE'�A'INSERT'�A'PROCEDURE'�A'SELECT' �� 'UPDATE' �B
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(JdbcOdbc.java:3111)
at sun.jdbc.odbc.JdbcOdbcStatement.execute(JdbcOdbcStatement.java:338)
at sun.jdbc.odbc.JdbcOdbcStatement.executeUpdate(JdbcOdbcStatement.java:288)
at hk.gov.edb.util.ExcelHandle.updateNewEmail(ExcelHandle.java:414)
at hk.gov.edb.core.AppMain.doUpdate(AppMain.java:369)
at hk.gov.edb.core.AppMain$7.construct(AppMain.java:584)
at hk.gov.edb.util.SwingWorker$2.run(SwingWorker.java:127)
at java.lang.Thread.run(Thread.java:595) -
Password Protected .zip file for DropBox?
How can I create a password protected zip folder to place on dropbox that is accessible by mac and pc users?
folder, not file.
-
Create password protected directory
Hi, everybody, i've got just one question:
is there any way to create a password protected directory, using java.
Or maybe i need to use some system tools. Whatever, i have like no idea, how i can do that.
Would be thankfull for any answer =)
P.S. I know the platform, it going to run on: Windows XP sp2
Maybe i posted this theme in the wrong thread - then please help me and give an advice^ where it should be posted.
Edited by: Antilless on Sep 10, 2010 10:05 AM
Edited by: Antilless on Sep 10, 2010 10:06 AMAntilless wrote:
Hi, everybody, i've got just one question:
is there any way to create a password protected directory, using java.
Or maybe i need to use some system tools. Whatever, i have like no idea, how i can do that.
Would be thankfull for any answer =)
P.S. I know the platform, it going to run on: Windows XP sp2
Maybe i posted this theme in the wrong thread - then please help me and give an advice^ where it should be posted.You can't really password protect folder in Windows without using special tools, you can however
1) Make folders accessible to one or more users (and deny other users access)
This can be done on the commandline using the cacls tool
2) Encrypt files or folders so that only specific users can decrypt them
This can be done on the commandline using the cipher tool
For more advanced options you will probably need to make use of third party tools. -
Unzip a password protected file in java where the passwd is known
How do i unzip unzip a password protected file in java n the password is known.
Unzipping a simple zip file in java can be done thru Zip package but it provides no option for password protected files.
If anybody knows plse help me out.You can't with Java standard classes.
-
Sending HR-File as email by the ABAP program as password protected ZIP file
Hi All,
My requiremet is to directly email the SAP-HR files to the users as the password protected ZIP file on UNIX.
Can anyone help me out how to implement this in my ABAP program.
Regards,
Saumikhi,
To populate data in different column you may use the below code.
DATA : filename TYPE string VALUE "Path
DATA :BEGIN OF wa_string,
data TYPE string,
END OF wa_string.
DATA : it_data LIKE STANDARD TABLE OF wa_string,
data TYPE string.
DATA: v_tab TYPE char1.
v_tab = cl_abap_char_utilities=>horizontal_tab.
CONCATENATE 'happy' 'new year' INTO wa_string-data SEPARATED BY v_tab.
APPEND wa_string TO it_data .
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = filename
TABLES
data_tab = it_data.
IF sy-subrc <> 0.
ENDIF. -
Command for Unzipping a password protected zip file in Solaris
Hi,
I got a requirement where I need unzip a password protected zip file using java in Solaris.I tried with
unzip -P but it is not working in India and Australia (may be I need to download some patch). Can any one help me to find out the solution.
Thanks
NareshHi peterchun,
Thanks for your reply.
I was trying with correct password only but my Solaris is not able to recognize unzip -P command. Can you please let me know whether I need to install any patch on Solaris (my Solaris version is 9) for this command.
Basic requirement: password protected zip files comes to our application and those need to be unzipped to one particular location. As we are using JAVA/J2EE in our application, Can you please suggest any UNIX command (with example) for this requirement will be great.
Thanks,
Naresh -
How to create a oracle database by java code?
how to create a oracle database by java code?
please give some ways then that way's codeI'm not sure what you mean with "database". Do you mean an Oracle instance or an Oracle user/schema (probably the latter, because that's the equivalent to a MS SQL Database).
Creating an instance is definitely not possible from within Java. To create a new user this should be possible, as this can be done with SQL:
GRANT connect,resource TO <newuser> IDENTIFIED BY <password>;
I'm always cautious with questions like this. In 90% of the cases there is something wrong with the initial design. Creating a database shouldn't be something the application is doing.
Thomas -
Writing/reading password protected zip/gzip files
Hello All,
is there anyway in java that i can
write/read password protected zip/gzip files??
thanks in advance.Have you looked in the Java Documentation, for instance the java.util.zip package?
-
Extracting a Password Protected zip file
Can anybody help me to extract a password protected zip file? Using java code or any third party API...??
Can anybody help me to extract a password protected zip file?You'll need the password ;)
Using java code nope
any third party API...?? Yup.
Maybe you are looking for
-
Can't delete printer - client-error-not-found
After messing around with the installation of a cups based network printer (via a local Suse server) I came across some strange problems with my printer setup utility. Currently, I can neither delete nor add a printer from the list for the current us
-
What kind of monitor should I get for my Macbook Pro Retina?
I bought a Macbook Pro Retina to replace my old 2007 Macbook. When I hook my Retina up to my Acer 1080p LED Monitor, it does not display in full quality. I assume this is due to the size of the graphics card inside the laptop. My old macbook displaye
-
Can't fast forward songs? Help please
HELP! 10.1.2.17 is the iTunes version I have. I did not do the new update yet. I have a question. When you play a song. On the top middle it usually shows how many seconds, minutes you are into the song. You can drag the little bar and say go from 0.
-
ORA-12154 Connection error from HFM to Oracle Database
Hi, I am trying to configure Hyperion HFM but can write to HFM database. The implementation architecture: Hyperion 11.1.2.2 (with all the requiered patches for HFM, FDM, Shared Services, Workspace and Oracle Application Development) Server 1: Windows
-
In Upgraded from 4.6c to ECC 6.0 Cust.Movement type is not availablein MIGO
Hi Experts, We have done SAP upgrade from SAP 4.6c to ECC 6.0. There is a costomized Movement type Z01 and Z02 for goods issue to cost centre in 4.6c and working fine. Now after upgrade those movement types Z01 and Z02 are not appearing for selecting