First, the file encryption compression and decompression with the tar command
compression:tar-zcf-filename |openssl des3-salt-k Password | DD Of=filename.des3
This command compresses the filename file to generate a FILENAME.DES3 encrypted compressed file, password the encrypted password.
decompression:DD if=filename.des3 |openssl des3-d-k password | Tar zxf-
Note that the "-" at the back of the command will release all files, and K password can not, and will prompt for a password when decompressed.
Ii. encrypt and decompress files with zip command
Compression:
Method 1:zip-re filename.zip filename return, enter 2 times password
Method 2:zip-rp passwork filename.zip filename passwork is the password to be entered
Extract:
Method 1:unzip Filename.zip Enter the password as prompted
Method 2:unzip-p passwork filename.zip passwork is to extract the password, this will not be prompted to enter the password operation
A method of encrypting and decompressing files under Linux