The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Investment Protection iBot HP Server News and Podcasts RSS 0 09-09-2008 11:08 AM
Syntaxt to zip a file with password protection veeru4all UNIX for Dummies Questions & Answers 3 08-21-2008 01:08 AM
File password protection/encryption rdudejr AIX 2 07-09-2006 06:43 PM
Protection code of file/directory zp523444 UNIX for Advanced & Expert Users 3 12-12-2005 11:24 PM
Does unix has password protection for zip files? p_prathaban UNIX for Advanced & Expert Users 6 02-19-2004 10:46 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-06-2009
pintu pintu is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 6
Zip file with password protection

I am trying to zip a file with password protection.

I have read all or atleast most of the threads on the website, but couldn't come up with a solution.

I am running ZIP version 2.3 on HP-UX but I dont see the -P (password) option. I read somewhere that free versions of zip don't come with -P option. Can someone confirm this assumption. I have already wasted a weeks effort on this.

Can anyone suggest anyway of doing this, we are planning to send out an email (with attachment) to yahoo/gmail/outlook from our UNIX box but the file has to be password protected before it goes out. User will open the attachment from that email.
  #2 (permalink)  
Old 03-06-2009
Autocross.US's Avatar
Autocross.US Autocross.US is offline
Registered User
  
 

Join Date: Nov 2008
Location: Chesapeake, VA
Posts: 73
If it's just a single file, why not use pgp or gpg to encrypt it? You could also use vi with the -x option to encrypt the file.

Other than that, use the crypt command:

Encode:
crypt Password < filename > filename.encrypted

Decode:
crypt Password < filename.encrypted > filename

Last edited by Autocross.US; 03-06-2009 at 04:52 PM..
  #3 (permalink)  
Old 03-06-2009
pintu pintu is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 6
If I encode using pgp in UNIX, what software would the user have to use to open it in say MS-Word /Notepad ? Forgot to mention that the file is .txt.

From what I read, if I use crypt to encode the file, I have to use crypt to decode it too! cannot use that in Windows, or can I ?
  #4 (permalink)  
Old 03-09-2009
zTodd zTodd is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 23
just to confirm, when you look at
man zip
it doesn't have the -P option?

and when you try to use zip with the -P option, it doesn't work?

When I got a free hosting account with Joyent which uses the Bash shell, the zip program it comes with has the -P option in the man page.
  #5 (permalink)  
Old 03-16-2009
pintu pintu is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 6
I dont see the -P option when I check the man pages.

Thanks for your help zTodd
  #6 (permalink)  
Old 03-16-2009
jim mcnamara jim mcnamara is online now Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,738
pgp (as GNU gpg or "gpg") is supported for Windows and unix. It is free for both platforms.

The GNU Privacy Guard - GnuPG.org
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:07 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0