Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: thebenjamincode on April 25, 2015, 08:12:43 AM



Title: how to use vanitygen?
Post by: thebenjamincode on April 25, 2015, 08:12:43 AM
Hi there, i just want to know how to use vanitygen and save its result into a textfile? For example i want to make many address that starts with 1Ben


Title: Re: how to use vanitygen?
Post by: Amph on April 25, 2015, 09:58:23 AM
if you want to make a custom address, here a guide

https://www.cryptocoinsnews.com/get-custom-bitcoin-address/


Title: Re: how to use vanitygen?
Post by: defcon23 on April 25, 2015, 10:15:24 AM
install and using vanitygen is easy.
just follow these steps:


README

I'd like to present a standalone command line vanity address generator
called vanitygen.

There are plenty of quality tools to do this right now already.  So why
use vanitygen?  The main reason is that it is fast, more than an order
of magnitude faster than the official bitcoin client with the vanity
address patch applied.  This is despite the fact that it runs on the
CPU and does not use OpenCL or CUDA.  Vanitygen is also a bit more
user-friendly in that it provides feedback on its rate of progress and
how many keys it has checked.

Vanitygen is written in C, and is provided in source code form and
pre-built Win32 binaries.  At present, vanitygen can be built on Linux,
and requires the openssl and pcre libraries.

Vanitygen can generate regular bitcoin addresses, namecoin addresses,
and testnet addresses.

Vanitygen can search for exact prefixes or regular expression matches.  
When searching for exact prefixes, vanitygen will ensure that the
prefix is possible, will provide a difficulty estimate, and will run
about 30% faster.  Exact prefixes are case-sensitive by default, but
may be searched case-insensitively using the "-i" option.  Regular
expression patterns follow the Perl-compatible regular expression
language.

Vanitygen can accept a list of patterns to search for, either on the
command line, or from a file or stdin using the "-f" option.  File
sources should have one pattern per line.  When searching for N exact
prefixes, performance of O(logN) can be expected, and extremely long
lists of prefixes will have little effect on search rate.  Searching
for N regular expressions will have varied performance depending on the
complexity of the expressions, but O(N) performance can be expected.

By default, vanitygen will spawn one worker thread for each CPU in your
system.  If you wish to limit the number of worker threads created by
vanitygen, use the "-t" option.

The example below completed quicker than average, and took about 45 sec
to finish, using both cores of my aging Core 2 Duo E6600:

$ ./vanitygen 1Love
Difficulty: 4476342
[48165 K/s][total 2080000][Prob 37.2%][50% in 21.2s]                          
Pattern: 1Love
Address: 1LoveRg5t2NCDLUZh6Q8ixv74M5YGVxXaN
Privkey: 5JLUmjZiirgziDmWmNprPsNx8DYwfecUNk1FQXmDPaoKB36fX1o

Currently, it is difficult to import the private key into bitcoin.  
Sipa's showwallet branch has a new command called "importprivkey" that
accepts the base-58 encoded private key.  Vanitygen has been tested to
work with that version of bitcoin.

---------------------------------------------------------------

so, in your case: $ ./vanitygen 1Ben

SOURCE:


 https://github.com/samr7/vanitygen


Title: Re: how to use vanitygen?
Post by: notlist3d on April 25, 2015, 02:51:04 PM
Do it on  a computer with a decent GPU.   The GPU speeds it up quite a bit compared to CPU.

I personally have not used the online one, but I know some people do.  I like to create them myself.


Title: Re: how to use vanitygen?
Post by: coinpr0n on April 26, 2015, 10:44:57 AM
If you wanted the output to a file and running on a Unix-like machine you could pipe the output of Vanitygen into a text file ...

$ vanitygen 1Ben >> Ben.txt

That shoud do the trick for you.


Title: Re: how to use vanitygen?
Post by: jonnybravo0311 on April 26, 2015, 03:20:40 PM
Do it on  a computer with a decent GPU.   The GPU speeds it up quite a bit compared to CPU.

I personally have not used the online one, but I know some people do.  I like to create them myself.
Even without using the GPU, creating an address that starts 1Ben won't take too much time.

If you do wish to use your GPU, instead of just using vanitygen, use oclvanitygen:

Code:
./oclvanitygen -d 2 1Ben

The -d 2 parameter is specific to my machine because I've got multiple GPUs (device 0 is the CPU, device 1 is the integrated graphics, device 2 is the discrete GPU).

Creating the 1Ben address took less than a second.