--batch オプションと --passphrase-fd を組み合わせることで、標準入力からパスフレーズを渡して暗号化できる。
--passphrase-fd オプションは、gpg --help には記載されていないので man を参照のこと。
ファイルをパスフレーズとして使うこともできる。
GnuPGを対称鍵暗号ツールとして使う Symmetric key encryption by GnuPG
http://home.catv.ne.jp/pp/ginoue/memo/gpg-symmetric.html
$ echo passphrase | gpg --passphrase-fd 0 --batch -c data.txt
--passphrase-fd オプションは、gpg --help には記載されていないので man を参照のこと。
--passphrase-fd n
Read the passphrase 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. Don't use
this option if you can avoid it.
ファイルをパスフレーズとして使うこともできる。
$ cat keyfile | gpg --passphrase-fd 0 --batch -c data.txt
GnuPGを対称鍵暗号ツールとして使う Symmetric key encryption by GnuPG
http://home.catv.ne.jp/pp/ginoue/memo/gpg-symmetric.html
パスフレーズだけを使った暗号化。暗号化と復号で同じ鍵を使うので、対称鍵暗号方式や共通鍵暗号方式と呼ばれる。
-c オプションを使う。
文書の暗号化と復号化
http://homepage3.nifty.com/peterpan/gphnode7.html
-c オプションを使う。
-c, --symmetric encryption only with symmetric cipher
- 暗号化
$ gpg --symmetric data.txt
Enter passphrase:
- 復号
$ gpg data.txt.gpg
gpg: CAST5 encrypted data
Enter passphrase:
文書の暗号化と復号化
http://homepage3.nifty.com/peterpan/gphnode7.html
- コピー & ペースト
コピー: CTRL + Insert切り取り: CTRL + Delete
貼り付け: Shift + Insert
- カーソル移動
行頭に移動: CTRL + a行末に移動: CTRL + e
文書の先頭に移動: ESC Shift + <
文書の末尾に移動: ESC Shift + >
- 削除
カーソルから行末までを削除: CTRL + k- アンドゥ (Undo、元に戻す、やり直し)、リドゥ (Redo、元に戻さない、やり直しのやり直し)
アンドゥ: CTRL + \ または Endリドゥ: CTRL + _ または F12 または Shift + End
- 文書の保存
保存: CTRL + x CTRL + s- grep
開いているファイルのみを grep: M-x grep- 2004年5月14日 追加
次のウインドウにカーソルを移動: CTRL + x o前のウインドウにカーソルを移動: CTRL + x p
最近使うようになった機能。最近は複数のウインドウを開いて編集することが多くなったのでウインドウを移動するコマンドを使うようになった。ウインドウは、正しくは「バッファ」っていうのかな? scratch などと同列のもの。私はタブを切り替えるような感覚で使ってる。
$ /usr/local/apache/bin/httpd -l
[hiroaki@pro ~]$ /usr/local/apache/bin/httpd -l
Compiled-in modules:
http_core.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
mod_include.c
mod_autoindex.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_access.c
mod_auth.c
mod_so.c
mod_setenvif.c
suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec
以上の内容はhttp://sonic64.com//2004-01-08.htmlより取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます
モバイルやる夫Viewer Ver0.14