A method of encrypting and decompressing files under Linux

Source: Internet
Author: User
Tags openssl

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.