Код: Выделить всё
[doka@dokasrv ~]# cat ~/backup/2007-05-14.tar.bz2 |
gpg --encrypt --cipher-algo AES256 --passphrase 1234567890 > ~/backup/2007-05-14.tar.pgp
Reading passphrase from file descriptor 1234567890
You did not specify a user ID. (you may use "-r")
Enter the user ID. End with an empty line:
gpg: no valid addressees
gpg: [stdin]: encryption failed: no such user id
[doka@dokasrv ~]#при составлении команды пользовался инструкцией:
Код:
gpg (GnuPG) 1.2.6
Copyright © 2004 Free Software Foundation, Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING for details.
Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA, ELG
Cipher: 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH
Hash: MD5, SHA1, RIPEMD160, SHA256
Compression: Uncompressed, ZIP, ZLIB, BZIP2
Syntax: gpg [options] [files]
sign, check, encrypt or decrypt
default operation depends on the input data
Commands:
-s, --sign [file] make a signature
--clearsign [file] make a clear text signature
-b, --detach-sign make a detached signature
-e, --encrypt encrypt data
--encrypt-files [files] encrypt files
-c, --symmetric encryption only with symmetric cipher
--store store only
-d, --decrypt decrypt data (default)
--decrypt-files [files] decrypt files
--verify verify a signature
--list-keys list keys
--list-sigs list keys and signatures
--check-sigs check key signatures
--fingerprint list keys and fingerprints
--list-secret-keys list secret keys
--gen-key generate a new key pair
--delete-keys remove keys from the public keyring
--delete-secret-keys remove keys from the secret keyring
--sign-key sign a key
--lsign-key sign a key locally
--nrsign-key sign a key non-revocably
--nrlsign-key sign a key locally and non-revocably
--edit-key sign or edit a key
--gen-revoke generate a revocation certificate
--export export keys
--send-keys export keys to a key server
--recv-keys import keys from a key server
--search-keys search for keys on a key server
--refresh-keys update all keys from a keyserver
--import import/merge keys
--list-packets list only the sequence of packets
--export-ownertrust export the ownertrust values
--import-ownertrust import ownertrust values
--update-trustdb update the trust database
--check-trustdb unattended trust database update
--fix-trustdb fix a corrupted trust database
--dearmor De-Armor a file or stdin
--enarmor En-Armor a file or stdin
--print-md algo [files] print message digests
Options:
-a, --armor create ascii armored output
-r, --recipient NAME encrypt for NAME
--default-recipient NAME use NAME as default recipient
--default-recipient-self use the default key as default recipient
-u, --local-user use this user-id to sign or decrypt
-z, --compress-level N set compress level N (0 disables)
--textmode use canonical text mode
-o, --output use as output file
-v, --verbose verbose
-q, --quiet be somewhat more quiet
--no-tty don't use the terminal at all
--force-v3-sigs force v3 signatures
--no-force-v3-sigs do not force v3 signatures
--force-v4-certs force v4 key signatures
--no-force-v4-certs do not force v4 key signatures
--force-mdc always use a MDC for encryption
--disable-mdc never use a MDC for encryption
-n, --dry-run do not make any changes
-i, --interactive prompt before overwriting
--use-agent use the gpg-agent
--batch batch mode: never ask
--yes assume yes on most questions
--no assume no on most questions
--keyring add this keyring to the list of keyrings
--secret-keyring add this secret keyring to the list
--show-keyring show which keyring a listed key is on
--default-key NAME use NAME as default secret key
--keyserver HOST use this keyserver to lookup keys
--display-charset NAME set terminal charset to NAME
--options read options from file
--status-fd FD write status info to this FD
--trusted-key KEYID ultimately trust this key
--load-extension FILE load extension module FILE
--rfc1991 emulate the mode described in RFC1991
--openpgp set all packet, cipher and digest options to OpenPGP behavior
--pgp2 set all packet, cipher and digest options to PGP 2.x behavior
--s2k-mode N use passphrase mode N
--s2k-digest-algo NAME use message digest algorithm NAME for passphrases
--s2k-cipher-algo NAME use cipher algorithm NAME for passphrases
--cipher-algo NAME use cipher algorithm NAME
--digest-algo NAME use message digest algorithm NAME
--compress-algo N use compress algorithm N
--throw-keyids throw keyid field of encrypted packets
--show-photos Show Photo IDs
--no-show-photos Don't show Photo IDs
--photo-viewer Set command line to view Photo IDs
(See the man page for a complete listing of all commands and options)
Examples:
-se -r Bob [file] sign and encrypt for user Bob
--clearsign [file] make a clear text signature
--detach-sign [file] make a detached signature
--list-keys [names] show keys
--fingerprint [names] show fingerprints
Please report bugs to <gnupg-bugs@gnu.org>.либо подскажите иное стандартное (т.е. штатное) средство для шифровки файлов (хотя куда уж стандартнее чем gnupg)