Can I Generate Keys Offline on an Old Computer?

16 replies 78 views
dan.yieldNewbie
Posts: 9 · Reputation: 39
#1May 28, 2021, 09:20 PM
Hey, Can I create private keys, public keys, and addresses using just an old computer (Windows, Mac, or Linux) that’s not connected to the internet? If it's possible, what’s the method? I figure generating a private key isn’t that hard for a laptop from 2012, right?
5 Reply Quote Share
Posts: 122 · Reputation: 15
#2May 28, 2021, 10:01 PM
For sure, generating keys isn’t heavy on resources. You could download something like bitaddress offline or grab a wallet like Electrum on another computer and then transfer it to your old one.
0 Reply Quote Share
cobra51Newbie
Posts: 100 · Reputation: 31
#3May 30, 2021, 04:21 PM
No need for an internet connection to use any desktop wallet. Bitcoin Core, Electrum, all those can be installed and run just fine. Of course, the steps for generating an address vary by client. What wallet you thinking of using?
2 Reply Quote Share
dan.yieldNewbie
Posts: 9 · Reputation: 39
#4May 30, 2021, 06:56 PM
So, I have to download something, huh? Can’t I just do it through the terminal?
2 Reply Quote Share
cobra51Newbie
Posts: 100 · Reputation: 31
#5May 30, 2021, 09:40 PM
You can, but it’s a hassle compared to using something like Bitcoin Core. If your OS has OpenSSL, you could generate an ECDSA keypair through the terminal and convert it to a Bitcoin address. Just be careful, or you might lose your funds. Wallets like Bitcoin Core have UI checks to help prevent mistakes.
0 Reply Quote Share
dan.yieldNewbie
Posts: 9 · Reputation: 39
#6May 31, 2021, 06:04 AM
Thanks for the heads up. But just to clarify, can an offline machine really generate proven keys, public keys, and addresses? Seems to me that doing this offline is safer than online, right?
6 Reply Quote Share
cobra51Newbie
Posts: 100 · Reputation: 31
#7May 31, 2021, 09:59 AM
In computer science, a sanity check is different from what you might think. You definitely don’t need the internet to generate keys. As long as your OS has what it needs, you can create ECDSA keypairs and addresses. You could even use pen and paper.
1 Reply Quote Share
0xNodeMember
Posts: 671 · Reputation: 80
#8May 31, 2021, 11:15 AM
Not really. You can do it on an old 2002 machine. Creating a private key requires generating 256 random bits, which is pretty light on resources.
1 Reply Quote Share
gang2015Member
Posts: 682 · Reputation: 62
#9May 31, 2021, 02:40 PM
It’s all about the RNG source in the script or software you’re using. Just so you know, Debian ISO files have Electrum included. You could also prep needed applications on a DVD or flash drive for your offline setup.
2 Reply Quote Share
lonealphaNewbie
Posts: 287 · Reputation: 5
#10May 31, 2021, 11:21 PM
Wallet software can generate everything without needing net access. You create private keys for addresses and public keys that match them, all offline. It's a known method, called an air-gapped wallet, meant to avoid malware threats.
0 Reply Quote Share
orbit1337Senior Member
Posts: 434 · Reputation: 941
#11Jun 1, 2021, 05:04 AM
For sure, it’s possible. But be careful creating and backing up private keys manually. One small mistake can cost you.
2 Reply Quote Share
dan.yieldNewbie
Posts: 9 · Reputation: 39
#12Jun 1, 2021, 07:57 AM
Thanks, everyone. I’m gonna try with a few test sats.
3 Reply Quote Share
dave.forkMember
Posts: 375 · Reputation: 185
#13Jun 1, 2021, 12:36 PM
Definitely safer since an online computer can get hacked, while an air-gapped device is secure from that. But honestly, seems like you might mess up. Why not try testnet first? I can send you some testnet sats.
6 Reply Quote Share
orbit1337Senior Member
Posts: 434 · Reputation: 941
#14Jun 1, 2021, 10:27 PM
Or maybe share your steps here for feedback?
2 Reply Quote Share
gang2015Member
Posts: 682 · Reputation: 62
#15Jun 2, 2021, 02:47 AM
Make sure the private key is valid. It should be between 1 and FFFFFFFFFFFFFFFF... If it’s outside that range, some software might not warn you or silently adjust it.
3 Reply Quote Share
orbit1337Senior Member
Posts: 434 · Reputation: 941
#16Jun 2, 2021, 05:24 PM
Getting 31 Fs in a row is super rare, like one in trillions. If that happens, something’s probably off.
3 Reply Quote Share
gwei2019Hero Member
Posts: 17 · Reputation: 2066
#17Jun 2, 2021, 10:28 PM
Totally agree. Could be a CPU issue or just random chance. But honestly, anyone with some sense would just generate another key.
4 Reply Quote Share

Related topics