Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

I'm having a problem understanding the size of an RSA public key and its private key pair.

I saw different key sizes for RSA algorithm (512, 1024,... for example), but is this the length of public key or the length of private key or are both equal in length?

I already searched for it, but:

  1. In thisthis question it is mentioned that both private and public keys for RSA algorithm have equal length. But:
  2. In thisthis question it is mentioned that they have different lengths!

Both answers are accepted. Are they equal or not in length?

Moreover my Java Card applet that generate RSA key pairs, always return pubic key and private key of equal length. The online tools for generating RSA key pairs have different length output!

Examples:

Online tool 1:

enter image description here

Online tool 2:

enter image description here

I'm having a problem understanding the size of an RSA public key and its private key pair.

I saw different key sizes for RSA algorithm (512, 1024,... for example), but is this the length of public key or the length of private key or are both equal in length?

I already searched for it, but:

  1. In this question it is mentioned that both private and public keys for RSA algorithm have equal length. But:
  2. In this question it is mentioned that they have different lengths!

Both answers are accepted. Are they equal or not in length?

Moreover my Java Card applet that generate RSA key pairs, always return pubic key and private key of equal length. The online tools for generating RSA key pairs have different length output!

Examples:

Online tool 1:

enter image description here

Online tool 2:

enter image description here

I'm having a problem understanding the size of an RSA public key and its private key pair.

I saw different key sizes for RSA algorithm (512, 1024,... for example), but is this the length of public key or the length of private key or are both equal in length?

I already searched for it, but:

  1. In this question it is mentioned that both private and public keys for RSA algorithm have equal length. But:
  2. In this question it is mentioned that they have different lengths!

Both answers are accepted. Are they equal or not in length?

Moreover my Java Card applet that generate RSA key pairs, always return pubic key and private key of equal length. The online tools for generating RSA key pairs have different length output!

Examples:

Online tool 1:

enter image description here

Online tool 2:

enter image description here

Tweeted twitter.com/#!/StackSecurity/status/603883773814530048
Adjusted formatting and some phrasing
Source Link
RoraΖ
  • 12.5k
  • 4
  • 54
  • 84

I haveI'm having a lot of problem with understanding the size of an RSA public key and its private key pair.

I saw different key sizes for RSA algorithm (512, 1024,... for example) but, but is this the length of public key or the length of private key or both are both equal in length?

I already searched for it, but:

  1. In this question it is mentioned that both private and public keys for RSA algorithm have equal length. But:
  2. In this question it is mentioned that they have different lengths!

Both answers are accepted. So what is the point really? Are they equal or not in length?

Moreover my Java Card applet that generate RSA key pairs, always return pubic key and private key in anof equal length. but theThe online tools for generating RSA key pairs have different lengthslength output!

Examples:

Online tool 1: http://travistidwell.com/blog/2013/09/06/an-online-rsa-public-and-private-key-generator/Online tool 1:

enter image description here

Online tool 2:http://nmichaels.org/rsa.pyOnline tool 2:

enter image description here

I have a lot of problem with understanding the size of RSA public key and its private pair.

I saw different key sizes for RSA algorithm (512, 1024,... for example) but, is this the length of public key or the length of private key or both are equal in length?

I already searched for it, but:

  1. In this question it is mentioned that both private and public keys for RSA algorithm have equal length. But:
  2. In this question it is mentioned that they have different lengths!

Both answers are accepted. So what is the point really? Are they equal or not in length?

Moreover my Java Card applet that generate RSA key pairs, always return pubic key and private key in an equal length. but the online tools for generating RSA key pairs have different lengths output!

Examples:

Online tool 1: http://travistidwell.com/blog/2013/09/06/an-online-rsa-public-and-private-key-generator/

enter image description here

Online tool 2:http://nmichaels.org/rsa.py

enter image description here

I'm having a problem understanding the size of an RSA public key and its private key pair.

I saw different key sizes for RSA algorithm (512, 1024,... for example), but is this the length of public key or the length of private key or are both equal in length?

I already searched for it, but:

  1. In this question it is mentioned that both private and public keys for RSA algorithm have equal length. But:
  2. In this question it is mentioned that they have different lengths!

Both answers are accepted. Are they equal or not in length?

Moreover my Java Card applet that generate RSA key pairs, always return pubic key and private key of equal length. The online tools for generating RSA key pairs have different length output!

Examples:

Online tool 1:

enter image description here

Online tool 2:

enter image description here

Source Link
TheGoodUser
  • 859
  • 2
  • 8
  • 13

RSA public key and private key lengths

I have a lot of problem with understanding the size of RSA public key and its private pair.

I saw different key sizes for RSA algorithm (512, 1024,... for example) but, is this the length of public key or the length of private key or both are equal in length?

I already searched for it, but:

  1. In this question it is mentioned that both private and public keys for RSA algorithm have equal length. But:
  2. In this question it is mentioned that they have different lengths!

Both answers are accepted. So what is the point really? Are they equal or not in length?

Moreover my Java Card applet that generate RSA key pairs, always return pubic key and private key in an equal length. but the online tools for generating RSA key pairs have different lengths output!

Examples:

Online tool 1: http://travistidwell.com/blog/2013/09/06/an-online-rsa-public-and-private-key-generator/

enter image description here

Online tool 2:http://nmichaels.org/rsa.py

enter image description here