Jump to content

Password Protect tar file

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
Prog

Prog

    Learning Programmer

  • Members
  • PipPipPip
  • 98 posts
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?

#2
Tor

Tor

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 486 posts
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>


#3
nadha

nadha

    Learning Programmer

  • Members
  • PipPipPip
  • 44 posts

Tor said:

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...

#4
Guest_Jordan_*

Guest_Jordan_*
  • Guests
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]

#5
apocalypse

apocalypse

    Newbie

  • Members
  • Pip
  • 9 posts
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.