В началоUnix Toolbox → 9. ENCRYPT FILES
Gentoo-doc HOME Пред.: 8. SUDOВ началоУровень выше: Unix ToolboxСлед.: 10. ENCRYPT PARTITIONS

9. 9. ENCRYPT FILES

9.1. 9.1 A single file

Encrypt and decrypt:

# openssl des -salt -in file -out file.des

# openssl des -d -salt -in file.des -out file

Note that the file can of course be a tar archive.

9.2. 9.2 tar and encrypt a whole directory

# tar -cf - directory | openssl des -salt -out directory.tar.des # Encrypt

# openssl des -d -salt -in directory.tar.des | tar -x # Decrypt

9.3. 9.3 tar zip and encrypt a whole directory

# tar -zcf - directory | openssl des -salt -out directory.tar.gz.des # Encrypt

# openssl des -d -salt -in directory.tar.gz.des | tar -xz # Decrypt

• Use -k mysecretpassword after des to avoid the interactive password request. However note that this is highly insecure.

• Use des3 instead of des to get even stronger encryption (Triple-DES Cipher). This uses also more CPU.

Пред.: 8. SUDOВ началоУровень выше: Unix ToolboxСлед.: 10. ENCRYPT PARTITIONS
В началоUnix Toolbox → 9. ENCRYPT FILES