Para cifrar:
openssl des3 -salt -in fichero_a_cifrar.txt -out fichero_cifrado.txt |
o bien este otro método
gpg -c file usage: gpg [options] --symmetric [filename] |
Para descifrar:
openssl des3 -d -salt -in fichero_cifrado.txt -out fichero_a_descifrar.txt |
o bien este otro método
gpg file.gpg |
Por ejemplo:
CIFRAR
El cifrado se realiza con CAST5
$ touch a $ gpg -c a Enter passphrase:elpasswordessecreto $ gpg: WARNING: `a' is an empty file $ ls -l -rw-r--r-- 1 root root 0 2010-12-04 00:00 a -rw-r--r-- 1 root root 40 2010-12-04 00:00 a.gpg |
DESCIFRAR
$ gpg a.gpg gpg: CAST5 encrypted data gpg: encrypted with 1 passphrase File `a' exists. Overwrite? (y/N) y gpg: WARNING: message was not integrity protected |