Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Password Protect tar file


  • Please log in to reply
4 replies to this topic

#1 Prog

Prog

    CC Resident

  • Just Joined
  • PipPipPipPip
  • 95 posts

Posted 11 August 2008 - 12:21 PM

How can I encrypt my tar.gz compressed files? I thought about using zip -e but I can't figure out how to add the password in a command line setting. IE:

# zip -e 
Enter Password:

Any ideas?
  • 0

#2 Tor

Tor

    CC Devotee

  • Just Joined
  • PipPipPipPipPipPip
  • 448 posts

Posted 15 August 2008 - 06:47 AM

Use GPG from your other post (looks like you figured it out already): http://forum.totalpe...-gpg-error.html

You can encrypt a file by doing:

# gpg -e -r UserID <file>

  • 0

#3 nadha

nadha

    CC Regular

  • Just Joined
  • PipPipPip
  • 42 posts

Posted 05 February 2009 - 08:44 AM

Use GPG from your other post (looks like you figured it out already): http://forum.totalpe...-gpg-error.html

You can encrypt a file by doing:

# gpg -e -r UserID <file>


Thanks for the Information...
  • 0

#4 Guest_Jordan_*

Guest_Jordan_*
  • Guest

Posted 10 February 2009 - 06:20 AM

I thought about using zip -e but I can't figure out how to add the password in a command line setting. IE:[/quote]

I don't understand, does zip -e not ask you for a password?

From the man pages:
[quote]
-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.
[/quote]
  • 0

#5 apocalypse

apocalypse

    CC Lurker

  • Just Joined
  • Pip
  • 9 posts

Posted 05 April 2009 - 03:13 PM

That's great. Although I'm not that good in writing from a command prompt like environment but its worth the trouble if you really want to protect your files even with a Unix system.
  • 0




Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download