以下の内容はhttp://sonic64.com//2004-01-08.htmlより取得しました。


Landscape トップページ | < 前の日 2004-01-07 2004-01-08 次の日 2004-01-09 >

Landscape - エンジニアのメモ 2004-01-08

* gpg で標準入力からパスワードを渡してバッチ処理で暗号化

この記事の直リンクURL: Permlink | この記事が属するカテゴリ: [gpg]

--batch オプションと --passphrase-fd を組み合わせることで、標準入力からパスフレーズを渡して暗号化できる。
$ 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

* gpg でファイルをパスワードだけで 暗号化/復号する

この記事の直リンクURL: Permlink | この記事が属するカテゴリ: [gpg]

パスフレーズだけを使った暗号化。暗号化と復号で同じ鍵を使うので、対称鍵暗号方式や共通鍵暗号方式と呼ばれる。
-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

* xyzzy でよく使う機能とキーバインドのメモ

この記事の直リンクURL: Permlink | この記事が属するカテゴリ: [xyzzy]

- コピー & ペースト

コピー: 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 などと同列のもの。私はタブを切り替えるような感覚で使ってる。

* インストールされている apache モジュールの一覧を表示

この記事の直リンクURL: Permlink | この記事が属するカテゴリ: [Apache]

$ /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