|
发表于 2007-6-15 08:58:40
|
显示全部楼层
gpg --passphrase-file passfile -c filename
将从指定的文件中读取密码,只读取第一行
man gpg 有如下内容:
--passphrase-repeat n
Specify how many times gpg will request a new passphrase be repeated. This is useful for helping memorize a passphrase. Defaults to 1
repetition.
--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.
--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 sup-
plied. Obviously, 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.
--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. |
|