LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 03-27-2006, 11:26 PM   #1
wwnexc
Member
 
Registered: Sep 2005
Location: California
Distribution: Slackware & Debian
Posts: 264

Rep: Reputation: 30
Public Keys


Hi,

I have been playing around with GnuPG, and noticed, that the length of the public key (of one and the same private key), vary greatly in length.

Some keys were about 2 kb big, while others were 3 kb. The difference in length was very obvious, when i opened the files in the text editor. One seemed almost 2x the size of the other.

Is this normal? Which one is "better"?

Thanks!
 
Old 03-30-2006, 02:56 PM   #2
int0x80
Member
 
Registered: Sep 2002
Location: Cincinnati
Distribution: Debian GNU/Linux
Posts: 310

Rep: Reputation: 31
Depends how you define better. If you're looking for harder to crack, then the 3kb key is preferable to the 2kb key. Scaling this down a bit, if you have a 20 byte key and a 30 byte key, the 20 byte key has 1048576 (2 ** 20) different possibilities. The 30 byte key has 1073741824 possibilities. The difference is obviously 2 ** 10. So if you're looking for the strength of the keypair to be the meaning of better, then the larger size is the better choice.

With that said, there is no need to worry about the size of your public key alone. It is a public key so it can be availabe to everyone.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH public keys not working - RH 7.3 menator Linux - Newbie 7 11-03-2005 03:55 AM
ssh public/private keys lord_darkhelmet Linux - Newbie 8 10-29-2005 03:14 PM
YUM requires public keys, how do I get public keys? GNUROCKS Linux - Newbie 3 05-29-2005 08:50 AM
SSH Public Keys Problems Temujin_12 Linux - Security 4 02-23-2005 12:43 PM
Encryption - Public Keys - How secure? mymojo Linux - Security 8 10-21-2003 08:09 AM


All times are GMT -5. The time now is 02:58 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration