2011.08.31
Ubuntu 11.04 でディレクトリの暗号化
Ubuntu11.04で特定のディレクトリをencfsを使って暗号化する。
インストール。
$ sudo apt-get install encfs
暗号化したディレクトリの作成。
$ encfs ~/.crypt ~/crypt
この例だと、~/.cryptに暗号化されたデータが入り、~/cryptでファイルアクセスできる。
初回は作成だが、作成後は上記コマンドでディレクトリが利用できる。
ディレクトリが存在しない場合作成を聞かれる。
ディレクトリ “/home/hoge/.crypt/” が存在しません。作成しますか? (y,n) y
ディレクトリ “/home/hoge/crypt” が存在しません。作成しますか? (y,n) y
新しい暗号化ボリュームを作成します。
モード聞かれる。よくわからないので何も入力せずエンターでスタンダードモード。
Please choose from one of the following options:
enter “x” for expert configuration mode,
enter “p” for pre-configured paranoia mode,
anything else, or an empty line will select standard mode.
?>Standard configuration selected.
そしてログが流れ
設定が完了しました。以下のプロパティのファイルシステムが
作成されます:
ファイルシステム暗号アルゴリズム: “ssl/aes”, バージョン 3:0:2
Filename encoding: “nameio/block”, version 3:0:1
鍵サイズ: 192 ビット
Block Size: 1024 bytes
Each file contains 8 byte header with unique IV data.
Filenames encoded using IV chaining mode.
File holes passed through to ciphertext.Now you will need to enter a password for your filesystem.
You will need to remember this password, as there is absolutely
no recovery mechanism. However, the password can be changed
later using encfsctl.
パスワードを聞かれる。
新しい Encfs パスワード:
Encfs パスワードの確認:
完了。
Trackback URL
Comment & Trackback
Comment feed
Comment