Operating System - HP-UX
1823956 Members
3720 Online
109667 Solutions
New Discussion юеВ

UNIX Compress utility with password security

 
SOLVED
Go to solution

UNIX Compress utility with password security

Hi,

Is there any utility (open source) that I can user to create a tar/zip file wherein i can store username and password to read or extract the tar/zip file.

Please help.

Regards,
Kusuma
3 REPLIES 3
Sridhar Bhaskarla
Honored Contributor
Solution

Re: UNIX Compress utility with password security

Hi Kusuma,

There is a command called 'crypt' that you can use to crypt files. For ex.,

crypt in_file > outfile
Enter Key:
rm in_file

Now out_file is encrypted and you have to decrypt using the key you typed in above. To do it run the same command

crypt < outfile > orig.file
Enter Key:

So, just create regular tar/zip archive and then crypt it using the above method.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try

Re: UNIX Compress utility with password security

Thank you so much. It worked. But a small change when i tried on hp-unix. The below command worked.

crypt key dest

Regards,
Kusuma
Ian Cameron
Frequent Advisor

Re: UNIX Compress utility with password security

The following links to one of the HPUX Porting Center mirrors are for Zip 2.3 and UnZip 5.51 with encryption:

http://eigen.ee.ualberta.ca/hppd/hpux/Misc/zip-2.3/

http://eigen.ee.ualberta.ca/hppd/hpux/Misc/unzip-5.51/