cancel
Showing results for 
Search instead for 
Did you mean: 

Create encrypted ZIP files

Former Member
0 Kudos

Hello,

I have scenario File to File (without repository).

I looking for the way to encrypt the zip files.

Regards

Elad

Accepted Solutions (1)

Accepted Solutions (1)

henrique_pinto
Active Contributor
0 Kudos

To create encrypted zip files, you won't be able to use the standard zip module.

Simply because encryption isn't part of any zip specification.

The encryption is specific to the zip softwares and each one may have their way of encryption. For example, Winzip uses, afaik, AES encryption (128 or 256 bits).

As said, if you do want to use encryption in your zip files, the standard module won't be enough. You'll need to develop your own zip module.

You can base your development on this blog, done by Alessandro Guarnieri: /people/alessandro.guarneri/blog/2007/02/21/sap-xi-acting-as-a-huge-file-mover

Basically, you could use java.util.zip package for the compression and javax.crypto package for AES encryption. But you may want to go for "ready-to-use" classes also. Check this thread: /thread/619940 [original link is broken]

Regards,

Henrique.

Answers (3)

Answers (3)

Former Member
0 Kudos

Using any encryption utility ?

Former Member
0 Kudos

I think to work with gzip

Former Member
0 Kudos

k

http://www.gzip.org/#faq4

Is there a Windows interface for gzip?

PowerArchiver 6.1, <b>7-zip</b> and Winzip include the gzip compression code and can decompress .gz and tar.gz files. Win-GZ can compress and decompress files in gzip format

Now take a look at michals blog -> CASE 2 he has used 7-ZIP

https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg5814

Cheers,

*RAJ*

*REWARD POINTS IF FOUND USEFULL*

Former Member
0 Kudos

Hello Rajesh.

The second link is broken.

Can you send is again?

Regards

Elad

Former Member
0 Kudos

Sure

/people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions

Go through case 2.

<b>Cheers,

*RAJ*

*REWARD POINTS IF FOUND USEFULL*</b>

Former Member
0 Kudos

Hello Rajesh,

Is very colsed but I not found the commend line that now to how to encrypt files

Regards

Elad

Former Member
0 Kudos

XI running on windows environment or unix or any other>?

Former Member
Former Member
0 Kudos

Hello,

I copy part from gzip site:

Does gzip support encryption?

No. Simple encryption algorithms such as that of PKZIP can be broken. And adding strong encryption such as that of PGP to gzip would not make much sense because that would duplicate the functionality of those encryption programs. PGP already incorporates the gzip compression code, so use PGP if you need compression plus strong encryption.

Elad

santhosh_kumarv
Active Contributor
0 Kudos

Hi

Have a look at this thread

Regards

Santhosh

Former Member
0 Kudos

Hello Santhosh,

Is the same link that i received before and is not what i'm looking for.

Regards

Elad

Former Member
0 Kudos

Hi Elad

Please refer the following thread :

u will get some help

Former Member
0 Kudos

Hello Abhishek,

The question in the link that you sent me refers to data before it's written or read from the database.

I'm looking for the way to encrypt file without any connection to the repository.

Maybe with line in command line.

Regards

Elad

Former Member
0 Kudos

K there are 2 ways to create create Zip files

1) Use PayloadZipBeanModule follow the blog by stefen

/people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework

http://help.sap.com/saphelp_nw04/helpdata/en/45/da9358a1772e97e10000000a155369/frameset.htm

2) Other one using command line parameters

Michals Blog is there you can search.

<b>Cheers,

*RAJ*

*REWARD POINTS IF FOUND USEFULL*</b>

Former Member
0 Kudos

Hello Rajesh,

Thank you for your answer.

1. In Stephan blog i'm not found any way to encrypt the files.

2. I'm not found any command line parameters the encrypt files in Michael blog.

Any other idea?

Regards

Elad

Former Member
0 Kudos

Itz only for zipping not encryption

Former Member
0 Kudos

Any idea about encryption?