<p><a href="https://en.bitcoin.it/wiki/Vanitygen" rel="nofollow">https://en.bitcoin.it/wiki/Vanitygen</a> is a software which will generate BTC address keypairs at the command-line. Its main purpose is actually to generate "vanity" addresses which contain pretty custom strings, but if you run it as follows then you will get a continuous output of many random public-private pairs: ./vanitygen -k 1 (remove the -k to generate only a single pair rather than continuously generate). I have used these addresses in my testing (sending small amounts), and have always found the private-key to be successfully importable and usable in a wallet. I have personally run vanitygen on ubuntu precise and mac os x mt lion.</p>

CC BY-SA 3.0
2013-09-27T10:30:15.933Z
2013-09-27T10:30:15.933Z
James Tolchard
<p>I am creating a bash script (that I will happily share on github when done) that takes random public and private keys for bitcoin and then bottles them up in an AES encrypted container and then SSSS the key to unlock. (Aka, a really secure paper wallet to distribute but itself is worthless. ) For right now, the part that I have thus far "outsourced" was the public / private key generation using bitaddress.org to create the bulk addresses. I would like to pull that part into the bash script. </p>

<p>I have reviewed, 
<a href="https://github.com/RobKohr/PHP-Bitcoin-Address-Creator/blob/master/lib/botg.sh" rel="nofollow">https://github.com/RobKohr/PHP-Bitcoin-Address-Creator/blob/master/lib/botg.sh</a>
and found that 50% of the time the private key in fact does not "unlock" the public key. Further it only runs in Ubuntu not OSX. Further, my goal is to replicate the bulk function such that 50 or 1000 address could be created.</p>

<p>Does anyone have any scripts or suggested links / locations / examples to accomplish the creation of the key pairs? </p>

<p>Appreciated. </p>

CC BY-SA 3.0
2013-09-27T15:55:04.307Z
Does SSSS refer to the Shamir Secret Sharing Scheme?
Nate Eldredge
<private-key><script><public-key>
Public Key / Private Key Generation in a bash script (osx / ubuntu)
Matt
# Public Key / Private Key Generation in a bash script (osx / ubuntu)

(Asked by: username_0 on 2013-09-26)

I am creating a bash script (that I will happily share on github when done) that takes random public and private keys for bitcoin and then bottles them up in an AES encrypted container and then SSSS the key to unlock. (Aka, a really secure paper wallet to distribute but itself is worthless. ) For right now, the part that I have thus far "outsourced" was the public / private key generation using bitaddress.org to create the bulk addresses. I would like to pull that part into the bash script.

I have reviewed,
<https://github.com/RobKohr/PHP-Bitcoin-Address-Creator/blob/master/lib/botg.sh>
and found that 50% of the time the private key in fact does not "unlock" the public key. Further it only runs in Ubuntu not OSX. Further, my goal is to replicate the bulk function such that 50 or 1000 address could be created.

Does anyone have any scripts or suggested links / locations / examples to accomplish the creation of the key pairs?

Appreciated.

**Tags:** private-key, script, public-key

> **Comments:**
> **username_1**: Does SSSS refer to the Shamir Secret Sharing Scheme?  

---

## 1 answers

### Answer by username_2 on 2013-09-27. Score: 1

<https://en.bitcoin.it/wiki/Vanitygen> is a software which will generate BTC address keypairs at the command-line. Its main purpose is actually to generate "vanity" addresses which contain pretty custom strings, but if you run it as follows then you will get a continuous output of many random public-private pairs: ./vanitygen -k 1 (remove the -k to generate only a single pair rather than continuously generate). I have used these addresses in my testing (sending small amounts), and have always found the private-key to be successfully importable and usable in a wallet. I have personally run vanitygen on ubuntu precise and mac os x mt lion.


---

