Operating System - HP-UX
1840213 Members
3326 Online
110162 Solutions
New Discussion

How to encrypt & compress data in HP-UX and decrypt & uncompressed them in DOS?

 
SOLVED
Go to solution
Chia-Lin Mei
Occasional Contributor

How to encrypt & compress data in HP-UX and decrypt & uncompressed them in DOS?

How to encrypt & compress a whole directory data in UNIX and decrypt & uncompressed them in DOS? (p.s. If possible, it will be better to do uncompression by winzip.)

The following way can be done in UNIX:

# cd /tmp
# tar cvf tar.bk /home/test1
# compress -c tar.bk | crypt > tar.sec

However, the compressed & encrypted file "tar.sec" can't be processed in DOS.

Does anyone has idea?

I originally want to use "gzip" in HP-UX but "gzip" seemingly does not have encrypt function. Please advise.
測試
3 REPLIES 3
Sanjay Kumar Suri
Honored Contributor

Re: How to encrypt & compress data in HP-UX and decrypt & uncompressed them in DOS?

I don't think there is some tool which can encrupt & compress and also works on DOS & UNIX.

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Stefan Schulz
Honored Contributor
Solution

Re: How to encrypt & compress data in HP-UX and decrypt & uncompressed them in DOS?

Hi,

i dont't know it this will meet your needs, but there is a ZIP available for HP-UX which offers an option -e for encyption. Here the extract from the man page:

-e Encrypt the contents of the zip archive using a password which is
entered on the terminal in response to a prompt (this will not be
echoed; if standard error is not a tty, zip will exit with an
error). The password prompt is repeated to save the user from
typing errors.

This zip is compatibal with PKZip so you can use your favorite ZIP programm on DOS/Windows to extract the data.

Have a look at the porting center eg. at http://hpux.asknet.de

Hope this helps

Regards Stefan
No Mouse found. System halted. Press Mousebutton to continue.
Chia-Lin Mei
Occasional Contributor

Re: How to encrypt & compress data in HP-UX and decrypt & uncompressed them in DOS?

Hi Stefan,

I have download zip-2.3 from utah website and test ok:

# cd /home/test1
# zip -e -r - . > /tmp/bk.zip

The output file "bk.zip" really can be extracted by winzip and winzip also responses to a prompt for password input.

Thanks again for your help.
測試