openPGP в России
http://www.pgpru.com
редакция: 02/03/2014 11:10
Форум
/
РаботаСGnuPG
/ПередачаПароляВКоманднуСтрокуGPG
назад
Передача пароля в командну строку GPG
Здравствуйте.
При использовании GPG для симметричного шифрования
gpg.exe --no-emit-version -c --cipher-algo BLOWFISH
можно ли передать пароль в командной строке?
Комментарии
— SATtva
(02/03/2014 11:57)
man gpg --passphrase-fd n Read the passphrase from file descriptor n. Only the first line will be read from file descriptor n. If you use 0 for n, the passphrase will be read from STDIN. This can only be used if only one passphrase is supplied. Note that this passphrase is only used if the option --batch has also been given. This is different from gpg. --passphrase-file file Read the passphrase from file file. Only the first line will be read from file file. This can only be used if only one passphrase is supplied. Obvi- ously, a passphrase stored in a file is of questionable security if other users can read this file. Don't use this option if you can avoid it. Note that this passphrase is only used if the option --batch has also been given. This is different from gpg. --passphrase string Use string as the passphrase. This can only be used if only one passphrase is supplied. Obviously, this is of very questionable security on a multi- user system. Don't use this option if you can avoid it. Note that this passphrase is only used if the option --batch has also been given. This is different from gpg.
— K10
(02/03/2014 16:11)
Спасибо!
Спасибо!