[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RE:
Hi,
我试了一下,--gen-key 可以输入中文。
用 --list-keys 显示,也能够直接显示中文,没有换码显示。
但是从 gpg export 来的key中中文用户名,如你所说按照16进制显示。
有什么潜在问题,我没有想过。
bash# gpg --gen-key
gpg (GnuPG) 1.0.6; Copyright (C) 2001 Free Software Foundation, Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING for details.
Please select what kind of key you want:
(1) DSA and ElGamal (default)
(2) DSA (sign only)
(4) ElGamal (sign and encrypt)
Your selection?
DSA keypair will have 1024 bits.
About to generate a new ELG-E keypair.
minimum keysize is 768 bits
default keysize is 1024 bits
highest suggested keysize is 2048 bits
What keysize do you want? (1024)
Requested keysize is 1024 bits
Please specify how long the key should be valid.
0 = key does not expire
<n> = key expires in n days
<n>w = key expires in n weeks
<n>m = key expires in n months
<n>y = key expires in n years
Key is valid for? (0)
Key does not expire at all
Is this correct (y/n)? y
You need a User-ID to identify your key; the software constructs the user id
from Real Name, Comment and Email Address in this form:
"Heinrich Heine (Der Dichter) <heinrichh@duesseldorf.de>"
Real name: 蒋鑫
Name must be at least 5 characters long
Real name: 蒋 鑫
^^^^^^^^^^^^^^^^
由于用户不能短于五个字符的配置,我又重输了一次。在姓名中间加了一个空格。
Email address: johnson.AT.worldhello.net
Comment:
You are using the `iso-8859-1' character set.
You selected this USER-ID:
"蒋 鑫 <johnson.AT.worldhello.net>"
Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
You need a Passphrase to protect your secret key.
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
+++++++++++++++.+++++++++++++++.+++++++++++++++.+++++++++++++++++++++++++...+++++.+++++++++++++++..+++++.+++++.+++++..++++++++++++++++++++.++++++++++>+++++...........................+++++
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
.++++++++++++++++++++.++++++++++++++++++++++++++++++.++++++++++++++++++++.+++++.+++++.++++++++++++++++++++++++++++++.+++++++++++++++.+++++>+++++>+++++.....+++++^^^
public and secret key created and signed.
bash# gpg --list-keys
pub 1024D/EAA9DFC9 2003-07-22 蒋 鑫 <johnson.AT.worldhello.net>
sub 1024g/49FF86ED 2003-07-22
-----Original Message-----
From: Ren Xiaolei [mailto:renxiaolei@xinhuanet.com]
Sent: Tuesday, July 22, 2003 1:24 PM
To: Jiang Xin
Subject: Re: RE:
Hi,Jiang Xin,
我是说--gen-key那里不认中文。导入中文的以后,list的时候变成16进制了。再说,将来说不定又要发展中文域名的email,那事可就大了。
另外还有个问题求教。--default-key和--local-user有什么区别?
Best Regards.
Ren Xiaolei
2003-07-22
-------------------------------
E-mail: renxiaolei@xinhuanet.com
WebSite: http://www.1000KB.com/
-------------------------------
======= 2003-07-22 13:09:00 You wrote:=======
>Hi,
>
>这个问题没有那么严重吧。你所说的中文UserID 无非就是用户名,
>其它部分如:邮件地址,公钥ID 等肯定还是英文字母组成的吧。
>再说,GPG 的 -u 参数
> -u, --local-user use this user-id to sign or decrypt
>可以跟 Key ID, Email 地址等任何信息,实在看不出中文带来的麻烦有多少。
>
>还有既然要把公钥共享给他人,还是用英文好一些。
>
>Johnson
>
>-----Original Message-----
>From: Ren Xiaolei [mailto:renxiaolei@xinhuanet.com]
>Sent: Tuesday, July 22, 2003 12:59 PM
>To: johnson.AT.worldhello.net
>Subject:
>
>
>Hello,johnson,
>
> 有个问题。你的PGP/GPG Howto中提到PGP可以使用中文UserID。但是为什
>么GPG不能?我把PGP生成的中文UserID导入GPG,都变成\x??之类的16进制代码
>了。用GPG生成中文ID,提示格式不对;强制不检查格式,也会生成错误的ID。为
>什么?
>
>Best Regards.
>
>
>Ren Xiaolei
>2003-07-22
>-------------------------------
>E-mail: renxiaolei@xinhuanet.com
>WebSite: http://www.1000KB.com/
>-------------------------------
= = = = = = = = = = = = = = = = = = = =