Author

Topic: Extracting Private Key (Read 96 times)

legendary
Activity: 4466
Merit: 3391
August 29, 2023, 04:51:33 PM
#11
Quote
However, if you import the private key into a PGP app, it may contain some helpful information.


Could you please give me an example of such a program for mac os or Linux and how do i use it with my file to get more information about the file.

Import the private key using gpg on Linux and look at the meta information.
newbie
Activity: 5
Merit: 0
August 29, 2023, 01:50:45 PM
#10
However, if you import the private key into a PGP app, it may contain some helpful information.
[/quote]


Could you please give me an example of such a program for mac os or Linux and how do i use it with my file to get more information about the file.
How do you think, basically, can the file in the format PKCS1 private key (unencrypted) in PEM contain private key BTC.
I've been googling for days and i haven't moved anywhere yet. I read, that servers like BitGo use JS when creating the new wallet and generate files in similar format.
Although, i don't really know much in programming to say that.
Thanks!
legendary
Activity: 4466
Merit: 3391
August 25, 2023, 04:18:22 PM
#9
Yes, I know that, but what do I do with this file? Where do I use it?

I suspect that the wallet is a custodial wallet and that access to your account can be gained using the the RSA private key. I am not that familiar with the different custodial wallets, so I can't tell you which one it is.

However, if you import the private key into a PGP app, it may contain some helpful information.
newbie
Activity: 5
Merit: 0
August 25, 2023, 03:21:48 PM
#8
I opened this file using password that I used when creating the wallet in the http://bitwiseshiftleft.github.io/sjcl/demo/ service and got this content.


What's the purpose of using that tool?
It is not a tool to generate or create a wallet read this below if what it is used for.

Javascript cryptography implementation. Crush to remove comments, shorten variable names, and generally reduce transmission size.

About the backup wallet that your friend created for you it might be a Schildbach wallet backup there is a tool to decrypt the wallet on their GitHub documentation. Check the link below for the guide

- https://github.com/bitcoin-wallet/bitcoin-wallet/blob/main/wallet/README.recover.md

When I enter the password it says - bad magic number and makes an empty bitcoin-wallet-decrypted-backup file.

If I leave the password field empty and click enter, it doesn’t print and makes an empty bitcoin-wallet-decrypted-backup file.
newbie
Activity: 5
Merit: 0
August 25, 2023, 01:34:18 PM
#7
I opened this file using password that I used when creating the wallet in the http://bitwiseshiftleft.github.io/sjcl/demo/ service and got this content.


What's the purpose of using that tool?
It is not a tool to generate or create a wallet read this below if what it is used for.

Javascript cryptography implementation. Crush to remove comments, shorten variable names, and generally reduce transmission size.

About the backup wallet that your friend created for you it might be a Schildbach wallet backup there is a tool to decrypt the wallet on their GitHub documentation. Check the link below for the guide

- https://github.com/bitcoin-wallet/bitcoin-wallet/blob/main/wallet/README.recover.md


Thanks, I'll try now.
legendary
Activity: 3374
Merit: 3095
Playbet.io - Crypto Casino and Sportsbook
August 25, 2023, 12:55:21 PM
#6
I opened this file using password that I used when creating the wallet in the http://bitwiseshiftleft.github.io/sjcl/demo/ service and got this content.


What's the purpose of using that tool?
It is not a tool to generate or create a wallet read this below if what it is used for.

Javascript cryptography implementation. Crush to remove comments, shorten variable names, and generally reduce transmission size.

About the backup wallet that your friend created for you it might be a Schildbach wallet backup there is a tool to decrypt the wallet on their GitHub documentation. Check the link below for the guide

- https://github.com/bitcoin-wallet/bitcoin-wallet/blob/main/wallet/README.recover.md
full member
Activity: 161
Merit: 230
August 25, 2023, 08:50:08 AM
#5
That website has nothing to do with Bitcoin. Not sure why you are using it at all?
legendary
Activity: 1512
Merit: 4795
Leading Crypto Sports Betting & Casino Platform
August 25, 2023, 08:37:59 AM
#4
Yes, I know that, but what do I do with this file? Where do I use it?
The PGP key will have a public key. The public key can be sent to someone to encrypt a message which only your private key can decrypt.
newbie
Activity: 5
Merit: 0
August 25, 2023, 08:32:27 AM
#3
Yes, I know that, but what do I do with this file? Where do I use it?
legendary
Activity: 1512
Merit: 4795
Leading Crypto Sports Betting & Casino Platform
August 25, 2023, 08:23:45 AM
#2
Do not share your private key with anyone, else your coins would be stolen.

The private key above is PGP encryption, not bitcoin private key.

Bitcoin private key will start from xprv, yprv or zprv for master private key, while it will start from 5, K or L for child private key.
newbie
Activity: 5
Merit: 0
August 25, 2023, 08:14:48 AM
#1
Brief background: in 2017 my friend created a new BTC wallet for me and made a USB backup copy for me. Sadly I didn't take part in the process of creating the wallet and I don't know on what platform was it created. Currently, I am trying to get access to my funds, but I absolutely don't understand how do I do it with USB backup copy.
To sum up: I have an address for my wallet, password, file called enc without file extension (pem, dat, text, etc.)


{"iv":"XN1dZ58sSk2dwREfoU1h7Q==","v":1,"iter":1000,"ks":128,"ts":64,"mode"
:"ccm","adata":"","cipher":"aes","salt":"nCO3uQAT4cc=","ct":"eDzExQ5tCoHUwf
4v2aifbqYNU6VVLBOJYzGwWPKQF2qMLZPwhmbn/6dpKdd1woleoKgLZY7l5qhJr7gP75FKg16u9
xd1m5rQzFhq2QuZRMXHjeu81YK6HE6fp1FTrTS9qf/nktD/QpO5mw/LV1e+hhVsJBE5sbE="}



I opened this file using password that I used when creating the wallet in the http://bitwiseshiftleft.github.io/sjcl/demo/ service and got this content.


 -----BEGIN RSA PRIVATE KEY-----
MIIEpQIBAAKCAQEAqR1x4LminfSXm9Wwfj+Dg4Hzc6qbcvax3s5YKugUgJ1lqEn2
uqlsN5Z3dv1HdVsy+WqY9QK8gpdDy188QNH1Ss/bgTmoROQxJqDG6uzA1mmlumBr
asaewXGMUFNOMF71rCjdnYBEjshp3e01aaVaz/ycnsM7DnSVE1wrZIcjDqUf1NpC
uJUIsZ5oMHEWzAijr4TvJAN08rmTVzXIMvVKEzesSKRnkl5rNfbC1/rEqIvwA5L4
GMa3N1sTat5ryGsRM8OaB3lp5SLL18dgYk0GBwIDAQABAoIBAQCDqD24syyLhhjl
pBXUI4QyRGAQw1hjxvSwvbncJXOYsXCr9HEV3sI2AHke9I3GKmrjy/4qeKfjjvmj
gY/58rrhNDLyRr3ebDxrky1pRUnXYsY388qMhPahKNIQ0toDRFpEXkgxzuMQuavZ
r0su5SFu3H3eB6WZWl+Yg9/wUliTk+vahxPzYS6f6Yp9mDnvIOipkIjLJi6GsPYl
LfSm7e3D9omNZ1hK7Fqvf0Z16zoUmZ/cOOyYerKkbgGQ3VW+r+2e9UjDxvXaifh5
5Rh1a5TBAoGBANE3iKLnoV2a31l/ccGLYOzFJHR5PVkTDBwAudmQOEOcA/pRUYY+
Tq1e/pYciav3J+eBtWCyPX+gHraU6iRcjQy3iFj++1KYmSer5f/KarDf1CTSeKSW
lsP457Hw5/2B+cyR59MQteQhVmovxPVzwuUXTdfnMscLlE7Ka1ls7EIBsGmvQUF5
//VIwAtQO1o6oFIw3MZMZ4dr1BxqiNyCkTcRSr2nAoGBAILNo6GmC99ICsgbw/Vr
vMeLYgVoH5DnNbT0Rz3cyzCKBHqmCMBTsXkW7dC8CprChXgl47A6KM6GcQ9g3nwL
Oy+Q1Dx9fEmQoa9SCxb36ojBAoGBAIMRAhhhwNMHhFO9mjLSPzXd74H0wz9WFu+t
B1H0tZHY/wqTyP4NrQJVDTq2qsIf5XYqQ5ghAW/9bJNvTe86wyE2xl6Wlwtu8kud
ZOaB2jZUJB9awDcfktrzWLl+JGTsMmLsiSitSaZgzRcbZwxoEo4vOqvVqmXNPJ6e
vKeqdjKlAoGATRQ0PrsC/vVpjuYezpnSBrjt4BY8IlqMdY9/RW22Ka68NivT27Hv
5FHg0ZlGER/+5VfEkF4G5zbnFSGhZl5GVuGvYnCmX3GZBzb8zd8timPt/kx5nxPj
lcn16MkzwWhecozhV3l0u9rbI7vFs4uFKEU+TGupsfqRrSgXajOr7bg=
-----END RSA PRIVATE KEY-----



And then I absolutely don't understand what to do with this file.

In this thread  https://bitcointalksearch.org/topic/extracting-privat-key-from-pem-file-5309706 people say that you can extract PRIVATE KEY BTC out of such a file, but I don't understand if this is my case. In other posts I've seen people mention similar file for the BitGo wallet, but there iter":10000,"ks":256 + to recover BitGo wallet you not only need User Key but also ( Backup Key+BitGo Public Key ).
I would be grateful for any help!

P.S - Files in the examples are changed.
Jump to: