Author

Topic: Creating Private Keys (Read 964 times)

hero member
Activity: 924
Merit: 506
July 27, 2016, 07:55:52 PM
#4
and what are you going to do with them? or what good can come out from doing this?
legendary
Activity: 2772
Merit: 3284
July 26, 2016, 06:23:39 PM
#3
There's a program called vanitygen that will let you create as many private keys as you want with parameters.  That might help you?

Here's the thread for it.  I highly recommend.

https://bitcointalksearch.org/topic/vanitygen-vanity-bitcoin-address-generatorminer-v022-25804
He is looking to create brainwallets, not custom vanity addresses. Edward, does it have to be in C++? You could always download a brainwallet script and run it offline. It has the same result as offlinebitcoins.com every time. If your interested, I recommened using this brainwallet source code, which is a branch of the script offlinebitcoins is using. I haven't checked to see if it will steal your keys, so make sure to only use it offline. I don't recommend using brainwallets though, since they can be easily bruteforced if you pick a fairly easy phrase.
donator
Activity: 4760
Merit: 4323
Leading Crypto Sports Betting & Casino Platform
July 26, 2016, 02:46:00 PM
#2
There's a program called vanitygen that will let you create as many private keys as you want with parameters.  That might help you?

Here's the thread for it.  I highly recommend.

https://bitcointalksearch.org/topic/vanitygen-vanity-bitcoin-address-generatorminer-v022-25804
newbie
Activity: 1
Merit: 0
July 26, 2016, 02:32:42 PM
#1
i was trying to create an program in the c++ that randomly generates private keys like offlinebitcoins.com does
I want to base it off the users input so they input their secret exponent like 1 and generate the public and private key (public) 5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf (private) 1EHNa6Q4Jz2uvNExL497mE43ikXhwF6kZm

#include
#include
#include
#include
using namespace std;
static const char base58char[] = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";

int stringLength = sizeof(base58char) - 1;

char KeyGen() 
{

   return base58char[rand() % stringLength];
}

void KeyGeneration()
{
   for (int s = 0; s < 64; s++)
   {
      cout << KeyGen();
   }
   std::cin.get();
}


can anybody help

this has to be all offline
Jump to: