> pgpk -g
Choose the type of your public key:
1) DSS/Diffie-Hellman - New algorithm for 5.0 (default)
2) RSA
Choose 1 or 2: 1
使用する公開鍵暗号化方式を指定します。
ここではDSS/Diffie-Hellmanを選択しています。
Pick your public/private keypair key size:
(Sizes are Diffie-Hellman/DSS; Read the user's guide for more information)
1) 768/768 bits- Commercial grade, probably not currently breakable
2) 1024/1024 bits- High commercial grade, secure for many years
3) 2048/1024 bits- "Military" grade, secure for forseeable future(default)
4) 3072/1024 bits- Archival grade, slow, highest security
Choose 1, 2, 3 or 4, or enter desired number of Diffie-Hellman bits
(768 - 4096): 1
生成する鍵の長さを指定します。
ここでは、768bits を選択しています。
この鍵の長さが長くなるに従って、暗号化、復号化処理の時間が
長くなります。
You need a user ID for your public key. The desired form for this
user ID is your FULL name, followed by your E-mail address enclosed in
, if you have an E-mail address. For example:
Joe Smith
If you violate this standard, you will lose much of the benefits of
PGP 5.0's keyserver and email integration.
Enter a user ID for your public key: welcom19@mse.waseda.ac.jp
公開鍵のユーザーIDを入力します。
自分のメイルアドレスを入力してください。
Enter the validity period of your key in days from 0 - 999
0 is forever (and the default): 0
鍵の有効期間を入力します。
"0"は無期限です。
You need a pass phrase to protect your private key(s).
Your pass phrase can be any sentence or phrase and may have many
words, spaces, punctuation, or any other printable characters.
Enter pass phrase:
秘密鍵のパスフレーズを入力します。
パスフレーズは秘密鍵の漏洩を防ぐためのもので、パスフレーズが
わからなければ秘密鍵を使用することができません。
パスフレーズは、自分が憶えやすく他者が推測されにくい文字列を
設定してください。
Enter again, for confirmation:
Enter pass phrase:
もう一度、上で入力したパスフレーズを入力します。
Collecting randomness for key...
We need to generate 486 random bits. This is done by measuring the
time intervals between your keystrokes. Please enter some random text
on your keyboard until you hear the beep:
0 * -Enough, thank you.
鍵を生成するために、乱数を入力します。
"Enough, thank you."と表示されるまで、ランダムなキーを入力します。
...******** ..........*****..........********
Keypair created successfully.
If you wish to send this new key to a server, enter the URL of the server,
below. If not, enter nothing.
リターンキーを押します。
これで、PGPで使用する自分の公開鍵と秘密鍵が生成されました。