Bitcoin Forum

Bitcoin => Project Development => Topic started by: naphy on June 27, 2019, 03:18:08 PM



Title: Privatekey Generator!
Post by: naphy on June 27, 2019, 03:18:08 PM
I am looking for private key generator. Same like this one http://www.thegalacticlottery.com/script/ but not in website. If there is a .py version or code version that I can run in my pc using CPU or GPU. thanks in advance.


Title: Re: Privatekey Generator!
Post by: Patatas on June 27, 2019, 11:05:19 PM
I am looking for private key generator. Same like this one http://www.thegalacticlottery.com/script/ but not in website. If there is a .py version or code version that I can run in my pc using CPU or GPU. thanks in advance.
There is certainly a Python version and surprisingly just a few lines of code. Follow this thread on reddit and google the other sources: https://www.reddit.com/r/Bitcoin/comments/7tzq3w/generate_your_own_private_key_5_lines_of_python/ 

P.S.: Don't blindly trust the above link or any random code you come across internet, make sure you verify whatever you're doing is secure. This looks like a legit python module https://github.com/blockstack/pybitcoin


Title: Re: Privatekey Generator!
Post by: naphy on June 28, 2019, 10:32:20 AM
I am looking for private key generator. Same like this one http://www.thegalacticlottery.com/script/ but not in website. If there is a .py version or code version that I can run in my pc using CPU or GPU. thanks in advance.
There is certainly a Python version and surprisingly just a few lines of code. Follow this thread on reddit and google the other sources: https://www.reddit.com/r/Bitcoin/comments/7tzq3w/generate_your_own_private_key_5_lines_of_python/ 

P.S.: Don't blindly trust the above link or any random code you come across internet, make sure you verify whatever you're doing is secure. This looks like a legit python module https://github.com/blockstack/pybitcoin


Thank You! Kabayan hahaha  ;D ;D ;D


Title: Re: Privatekey Generator!
Post by: seoincorporation on June 28, 2019, 05:06:53 PM
The solution from patatas is a good one, you could use that python script, but my favorite form to do this is with a software called vanity gen, you can find it in the next link:

https://en.bitcoin.it/wiki/Vanitygen

There you will find where to download it, how to install it, and how it runs. The best part of it is that it works with other coins and not only with bitcoin ;)


Title: Re: Privatekey Generator!
Post by: yojoots on June 30, 2019, 08:47:25 PM
This looks like a legit python module https://github.com/blockstack/pybitcoin

I wouldn't recommend using this, based on the first sentence in the README (https://github.com/blockstack/pybitcoin#this-code-is-deprecated-and-should-not-be-used):

Quote
This code is deprecated and should not be used

Instead, see this article (https://www.freecodecamp.org/news/how-to-generate-your-very-own-bitcoin-private-key-7ad0f4936e6c/) for an informative walkthrough of the process. It includes python code and a few helpful tips to keep in mind. However, if you're planning on using these keys to store or manage significant sums of money, I would recommend using either a dedicated hardware wallet (like Trezor or the Ledger Nano X) or Bitcoin Core itself, built and run on a machine that has never been online (and ideally doesn't even have networking capabilities at all).