Bitcoin Forum
December 12, 2024, 09:37:20 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Extracting Private Key  (Read 99 times)
Alex G (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
August 25, 2023, 01:14:48 PM
 #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://bitcointalk.org/index.php?topic=5309706.0 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.
Charles-Tim
Legendary
*
Offline Offline

Activity: 1764
Merit: 5253


Leading Crypto Sports Betting & Casino Platform


View Profile
August 25, 2023, 01:23:45 PM
 #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.

..Stake.com..   ▄████████████████████████████████████▄
   ██ ▄▄▄▄▄▄▄▄▄▄            ▄▄▄▄▄▄▄▄▄▄ ██  ▄████▄
   ██ ▀▀▀▀▀▀▀▀▀▀ ██████████ ▀▀▀▀▀▀▀▀▀▀ ██  ██████
   ██ ██████████ ██      ██ ██████████ ██   ▀██▀
   ██ ██      ██ ██████  ██ ██      ██ ██    ██
   ██ ██████  ██ █████  ███ ██████  ██ ████▄ ██
   ██ █████  ███ ████  ████ █████  ███ ████████
   ██ ████  ████ ██████████ ████  ████ ████▀
   ██ ██████████ ▄▄▄▄▄▄▄▄▄▄ ██████████ ██
   ██            ▀▀▀▀▀▀▀▀▀▀            ██ 
   ▀█████████▀ ▄████████████▄ ▀█████████▀
  ▄▄▄▄▄▄▄▄▄▄▄▄███  ██  ██  ███▄▄▄▄▄▄▄▄▄▄▄▄
 ██████████████████████████████████████████
▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄
█  ▄▀▄             █▀▀█▀▄▄
█  █▀█             █  ▐  ▐▌
█       ▄██▄       █  ▌  █
█     ▄██████▄     █  ▌ ▐▌
█    ██████████    █ ▐  █
█   ▐██████████▌   █ ▐ ▐▌
█    ▀▀██████▀▀    █ ▌ █
█     ▄▄▄██▄▄▄     █ ▌▐▌
█                  █▐ █
█                  █▐▐▌
█                  █▐█
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀█
▄▄█████████▄▄
▄██▀▀▀▀█████▀▀▀▀██▄
▄█▀       ▐█▌       ▀█▄
██         ▐█▌         ██
████▄     ▄█████▄     ▄████
████████▄███████████▄████████
███▀    █████████████    ▀███
██       ███████████       ██
▀█▄       █████████       ▄█▀
▀█▄    ▄██▀▀▀▀▀▀▀██▄  ▄▄▄█▀
▀███████         ███████▀
▀█████▄       ▄█████▀
▀▀▀███▄▄▄███▀▀▀
..PLAY NOW..
Alex G (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
August 25, 2023, 01:32:27 PM
 #3

Yes, I know that, but what do I do with this file? Where do I use it?
Charles-Tim
Legendary
*
Offline Offline

Activity: 1764
Merit: 5253


Leading Crypto Sports Betting & Casino Platform


View Profile
August 25, 2023, 01:37:59 PM
 #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.

..Stake.com..   ▄████████████████████████████████████▄
   ██ ▄▄▄▄▄▄▄▄▄▄            ▄▄▄▄▄▄▄▄▄▄ ██  ▄████▄
   ██ ▀▀▀▀▀▀▀▀▀▀ ██████████ ▀▀▀▀▀▀▀▀▀▀ ██  ██████
   ██ ██████████ ██      ██ ██████████ ██   ▀██▀
   ██ ██      ██ ██████  ██ ██      ██ ██    ██
   ██ ██████  ██ █████  ███ ██████  ██ ████▄ ██
   ██ █████  ███ ████  ████ █████  ███ ████████
   ██ ████  ████ ██████████ ████  ████ ████▀
   ██ ██████████ ▄▄▄▄▄▄▄▄▄▄ ██████████ ██
   ██            ▀▀▀▀▀▀▀▀▀▀            ██ 
   ▀█████████▀ ▄████████████▄ ▀█████████▀
  ▄▄▄▄▄▄▄▄▄▄▄▄███  ██  ██  ███▄▄▄▄▄▄▄▄▄▄▄▄
 ██████████████████████████████████████████
▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄
█  ▄▀▄             █▀▀█▀▄▄
█  █▀█             █  ▐  ▐▌
█       ▄██▄       █  ▌  █
█     ▄██████▄     █  ▌ ▐▌
█    ██████████    █ ▐  █
█   ▐██████████▌   █ ▐ ▐▌
█    ▀▀██████▀▀    █ ▌ █
█     ▄▄▄██▄▄▄     █ ▌▐▌
█                  █▐ █
█                  █▐▐▌
█                  █▐█
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀█
▄▄█████████▄▄
▄██▀▀▀▀█████▀▀▀▀██▄
▄█▀       ▐█▌       ▀█▄
██         ▐█▌         ██
████▄     ▄█████▄     ▄████
████████▄███████████▄████████
███▀    █████████████    ▀███
██       ███████████       ██
▀█▄       █████████       ▄█▀
▀█▄    ▄██▀▀▀▀▀▀▀██▄  ▄▄▄█▀
▀███████         ███████▀
▀█████▄       ▄█████▀
▀▀▀███▄▄▄███▀▀▀
..PLAY NOW..
ymgve2
Full Member
***
Offline Offline

Activity: 162
Merit: 230


View Profile
August 25, 2023, 01:50:08 PM
 #5

That website has nothing to do with Bitcoin. Not sure why you are using it at all?
BitMaxz
Legendary
*
Offline Offline

Activity: 3472
Merit: 3200


Playbet.io - Crypto Casino and Sportsbook


View Profile WWW
August 25, 2023, 05: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

███████████████
█████████████████████
██████▄▄███████████████
██████▐████▄▄████████████
██████▐██▀▀▀██▄▄█████████
████████▌█████▀██▄▄██████
██████████████████▌█████
█████████████▀▄██▀▀██████
██████▐██▄▄█▌███████████
██████▐████▀█████████████
██████▀▀███████████████
█████████████████████
███████████████

.... ..Playbet.io..Casino & Sportsbook.....Grab up to  BTC + 800 Free Spins........
████████████████████████████████████████
██████████████████████████████████████████████
██████▄▄████████████████████████████████████████
██████▐████▄▄█████████████████████████████████████
██████▐██▀▀▀██▄▄██████████████████████████████████
████████▌█████▀██▄▄█████▄███▄███▄███▄█████████████
██████████████████▌████▀░░██▌██▄▄▄██████████████
█████████████▀▄██▀▀█████▄░░██▌██▄░░▄▄████▄███████
██████▐██▄▄█▌██████████▀███▀███▀███▀███▀█████████
██████▐████▀██████████████████████████████████████
██████▀▀████████████████████████████████████████
██████████████████████████████████████████████
████████████████████████████████████████
Alex G (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
August 25, 2023, 06: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.
Alex G (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
August 25, 2023, 08: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.
odolvlobo
Legendary
*
Offline Offline

Activity: 4522
Merit: 3426



View Profile
August 25, 2023, 09: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.

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
Alex G (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
August 29, 2023, 06: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!
odolvlobo
Legendary
*
Offline Offline

Activity: 4522
Merit: 3426



View Profile
August 29, 2023, 09: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.

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!