LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-17-2003, 10:12 PM   #1
osho
LQ Newbie
 
Registered: Feb 2003
Posts: 3

Rep: Reputation: 0
Gzip or ANycompress tools with password protection


hi there,

I would need a bit help, I would need to compress directory to one file and put a password on it. it is more likely that I am not looking too much on compression method but on the password protection.

I dont see. that compress, gzip, zip or any tool in linux that I know have such a option. the only thing I can think of to make own script that would handle the protection after the file is being compressed.

Thx Osho
 
Old 02-17-2003, 11:06 PM   #2
Tormented
Member
 
Registered: Feb 2003
Location: ???
Distribution: Mandriva 2006
Posts: 92

Rep: Reputation: 15
You can put a password on a zip file by using the zipcloak command:

zipcloak filename.zip

You'll be prompted to enter a password and verification of the
password.
You can type zipcloak -h for a complete list of available options.
 
Old 02-18-2003, 01:15 AM   #3
osho
LQ Newbie
 
Registered: Feb 2003
Posts: 3

Original Poster
Rep: Reputation: 0
isnt there something that wouldnt need promt. like take parameter only.
 
Old 02-18-2003, 03:38 AM   #4
PTBmilo
Member
 
Registered: Jan 2003
Posts: 167

Rep: Reputation: 30
You could use pgp/gpg and encrypt the file with your own pub key I guess.
 
Old 02-18-2003, 04:04 AM   #5
osho
LQ Newbie
 
Registered: Feb 2003
Posts: 3

Original Poster
Rep: Reputation: 0
well what if I dont want to have the key there all the time in file. or maybe i dont understand the gpg.
 
Old 02-18-2003, 05:06 AM   #6
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
there are many ways for cheap encryption like
passing the input through a filter before and
after compressing like
cat filename | tr whatever | gzip > filename.gz
then to extract
gzip -c filename.gz |tr whatever > filename

i forgot which utility you use to encode a file
using a certain word.

there is also rar for linux which lets you set
a password. rosenthal archiver i think.
sort of like pkzip or arj.

pkzip is also available for linux.

Last edited by whansard; 02-18-2003 at 05:08 AM.
 
Old 02-18-2003, 03:56 PM   #7
PTBmilo
Member
 
Registered: Jan 2003
Posts: 167

Rep: Reputation: 30
Quote:
Originally posted by whansard
there are many ways for cheap encryption like
passing the input through a filter before and
after compressing like
cat filename | tr whatever | gzip > filename.gz
then to extract
gzip -c filename.gz |tr whatever > filename

i forgot which utility you use to encode a file
using a certain word.
Whansard's got what you want I think. The utility is called crypt

Working of the above syntax:

cat filename | crypt [password] | gzip > filename.X.gz

gunzip -c filename.X.gz | crypt [password] > filename


Not the BEST encryption... if it's really important stuff, you should look into another solution.

p.s.- I'm not on unix at the moment, so I can't verify those commands.

EDIT:

P.S.- You wouldn't need the public key to be present for gpg, the comand would be something like:

gpg -e file.gz <user1> <user2>... <userN>

Where <user> would be the user(s) who will be able to decrypt the message.

Last edited by PTBmilo; 02-18-2003 at 04:23 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Directory password protection scootz6 Linux - Security 2 03-25-2004 03:04 PM
gzip/tarball password angelushu Linux - Security 2 01-30-2004 05:47 PM
is there any anti-virus protection tools for Linux gexiaofei Linux - Software 4 07-26-2003 07:33 AM
password protection kushal Linux - Security 4 10-10-2002 10:33 PM
Password Protection TheSockMonster Linux - Newbie 1 05-27-2002 12:10 PM


All times are GMT -5. The time now is 09:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration