Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

zip with password 1

Status
Not open for further replies.

alan147

Technical User
Nov 15, 2002
128
GB
Hello

I need to ftp some files off my machine to a remote site. My company wants to put a password on the file to make it more secure. Is there a UNIX application that will allow me to zip up the files and put a password on the zipped file?

Thanks

Alan
 
Hi Alan,

You could produce a tar archive.

Then use gzip to compress it.

Then either

1. ftp it to your PC for secure emailing via some form of encryption (PGP etc).

or

2. You could encrypt the GZIP'd TAR archive using openssh (if you have it installed).

You can encrypt/decrypt a file using OpenSSH with something like the following commands.

Code:
# Encrypt orig_file to enc_file.
openssl bf -salt -in ./orig_file >./enc_file

# Decrypt enc_file back to orig_file.
openssl bf -d -in ./enc_file >./orig_file2

Both openssl commands in the above examples use bf (for BlowFish) and will request a password.

The receivers of the file will have to go through the reverse process (and will require the password) to extract your files.

Best of Luck ;-)

____________________
Sometimes it pays to stay in bed on Monday, rather than spending the rest of the week debuging Mondays code.
 
d3vzero, a * for
Sometimes it pays to stay in bed on Monday, rather than spending the rest of the week debuging Mondays code.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top