Bitcoin Forum

Other => Beginners & Help => Topic started by: sosa442 on April 17, 2021, 07:52:12 PM



Title: HELP i have a RSA Private key ??
Post by: sosa442 on April 17, 2021, 07:52:12 PM
Hello,

sry im a noob  but if i have an RSA Private key can i access bitcoins with it ? and if so how ?


Title: Re: HELP i have a RSA Private key ??
Post by: Charles-Tim on April 17, 2021, 08:05:50 PM
No, you can not access bitcoin with RSA private key. RSA private key is used for authentication and a symmetric key exchange during establishment of an SSL/TLS session while bitcoin private key is completely different.

https://www.namecheap.com/support/knowledgebase/article.aspx/798/67/what-is-an-rsa-key-used-for/


Title: Re: HELP i have a RSA Private key ??
Post by: sosa442 on April 17, 2021, 08:14:18 PM
No, you can not access bitcoin with RSA private key. RSA private key is used for authentication and a symmetric key exchange during establishment of an SSL/TLS session while bitcoin private key is completely different.

https://www.namecheap.com/support/knowledgebase/article.aspx/798/67/what-is-an-rsa-key-used-for/

can i do anything useful with it ?


Title: Re: HELP i have a RSA Private key ??
Post by: Charles-Tim on April 17, 2021, 08:24:42 PM
can i do anything useful with it ?
I do not know much about RSA private key, but you can read the link I posted you above. RSA private key is a part of public key infrastructure used in SSL certificate.

Quote
It is a part of the public key infrastructure that is generally used in case of SSL certificates. A public key infrastructure assumes asymmetric encryption where two types of keys are used: Private Key and Public Key (it is included in an SSL certificate). Since encrypted data transmission takes too much time in case of asymmetric encryption, this kind of encryption is used for a secure symmetric key exchange that is used for actual transmitted data encryption and decryption.

If you think it has anything to do with bitcoin private key, you are absolutely wrong. It has nothing to do with bitcoin private key. If you need a bitcoin private key, you can generate that from bitcoin wallet. Any bitcoin sent to the address or public key the bitcoin wallet generates, the private key can be used to access the bitcoin on the blockchain.


Title: Re: HELP i have a RSA Private key ??
Post by: sosa442 on April 17, 2021, 08:28:10 PM
but what does this mean then ?

https://bitcoin.stackexchange.com/questions/35565/generate-address-with-rsa-private-key

can i not convert it to a useful private key or something ?


Title: Re: HELP i have a RSA Private key ??
Post by: c_atlas on April 17, 2021, 08:58:56 PM
but what does this mean then ?

https://bitcoin.stackexchange.com/questions/35565/generate-address-with-rsa-private-key

can i not convert it to a useful private key or something ?
That thread says you can use the RSA private key to generate a bitcoin private key by putting it through sha256. There's no good reason to do this though.

Sha256 takes n > 1 bits as input and gives a 256 bit output. Since its deterministic you will always get the same output, given the same input. That being said, it's better to just randomly generate a sequence of 256 bits and use that instead.


Title: Re: HELP i have a RSA Private key ??
Post by: pooya87 on April 18, 2021, 03:26:52 AM
In asymmetric cryptography (aka public-key cryptography) using Elliptic Curves or using Rivest–Shamir–Adleman algorithms, the private key is simply a number that we select at random in a certain range.

So to answer your question, if your RSA private key is selected at random and is in range to be a valid bitcoin private key (256 bit and between 1 and N) then you can use that "number" as your bitcoin private key.
But the issue is that since a 256 bit EC curve provides the same security as a 3072 bit RSA key and a 256-bit RSA keys aren't usually found, you can't convert the two. In simple terms there is a good chance that the RSA key you have is so much bigger than 256 bit.

That thread says you can use the RSA private key to generate a bitcoin private key by putting it through sha256. There's no good reason to do this though.

Sha256 takes n > 1 bits as input and gives a 256 bit output. Since its deterministic you will always get the same output, given the same input. That being said, it's better to just randomly generate a sequence of 256 bits and use that instead.
If the input is random the output can be considered random too. Assuming the RSA key was selected randomly SHA256 of it is secure enough to be used as a private key assuming it is a valid value (within range).
The whole process is pointless though, since you can simply select a random bitcoin private key instead of selecting a random RSA key then hashing it. This is also risky since if you leak the RSA key you'd also leak the bitcoin key.