Encriptação de ficheiros
Here's a few ways to do this. One thing to note is that if you're going to use separate compression and encryption tools you should always compress before encryption, since encrypted data is essentially non-compressible.
These examples compress and encrypt a file called
clear_text
.
Using
gpg
$ gpg -c clear_text #Compress & Encrypt
$ gpg -d clear_text.gpg #Decrypt & Decompress
gpg will compress the input file before encryption by default,
Protecção de ficheiros com password
Method Three-c
means to use symmetric encryption with a password. The output file will be clear_text.gpg
. One benefit of using gpg
is that is uses standard OpenPGP formats, so any encryption software that supports OpenPGP will be able to decrypt it.Protecção de ficheiros com password
zip --encrypt file.zip files
Another way to create a secure zip archive is to use GnuPG's symmetric key encryption.
To create an encrypted compressed tar archive with GnuPG:
$ tar czvpf - doc.pdf doc2.pdf doc3.pdf | gpg --symmetric --cipher-algo aes256 -o secure.tar.gz.gpgTo uncompress an archive file encrypted with GnuPG:
$ gpg -d secure.tar.gz.gpg | tar xzvf -
Sem comentários:
Enviar um comentário