Bitcoin Forum
June 19, 2021, 09:41:22 PM *
News: Latest Bitcoin Core release: 0.21.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Vanitygen: Generate an address with X characters  (Read 3782 times)
🏰 TradeFortress 🏰
CoinLenders / Inputs.io / CoinChat
VIP
Legendary
*
Offline Offline

Activity: 1246
Merit: 1029

reimbursements closed


View Profile
August 21, 2013, 07:41:33 AM
 #1

How can I get vanitygen to generate an address with a certain amount of characters - for example 32 or 33?
1624138882
Hero Member
*
Offline Offline

Posts: 1624138882

View Profile Personal Message (Offline)

Ignore
1624138882
Reply with quote  #2

1624138882
Report to moderator
1624138882
Hero Member
*
Offline Offline

Posts: 1624138882

View Profile Personal Message (Offline)

Ignore
1624138882
Reply with quote  #2

1624138882
Report to moderator
1624138882
Hero Member
*
Offline Offline

Posts: 1624138882

View Profile Personal Message (Offline)

Ignore
1624138882
Reply with quote  #2

1624138882
Report to moderator
The forum strives to allow free discussion of any ideas. All policies are built around this principle. This doesn't mean you can post garbage, though: posts should actually contain ideas, and these ideas should be argued reasonably.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
xeroc
Sr. Member
****
Offline Offline

Activity: 345
Merit: 250



View Profile
August 21, 2013, 08:42:36 AM
 #2

use
$ vanitygen -r "1[A-Z]{8,10}"
to get 8 to 10 upper case letters A-Z

use
$ vanitygen -r "1[a-zA-Z]{8,10}"
to get 8 to 10 upper and lower case letters a-zA-Z

and so on

jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1081


May Bitcoin be touched by his Noodly Appendage


View Profile
August 21, 2013, 11:04:18 AM
 #3

You want to choose 32 characters?

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
xeroc
Sr. Member
****
Offline Offline

Activity: 345
Merit: 250



View Profile
August 21, 2013, 11:07:40 AM
 #4

You want to choose 32 characters?
What he wants to say is: You need a next to infinite amount of time to get one.
🏰 TradeFortress 🏰
CoinLenders / Inputs.io / CoinChat
VIP
Legendary
*
Offline Offline

Activity: 1246
Merit: 1029

reimbursements closed


View Profile
August 21, 2013, 11:58:17 AM
 #5

You want to choose 32 characters?
No. I want any address that is 32 characters long. According to the Bitcoin wiki, Base58 can be as short as 27 characters.
DannyHamilton
Legendary
*
Offline Offline

Activity: 2506
Merit: 2035



View Profile
August 21, 2013, 12:23:46 PM
 #6

You want to choose 32 characters?
No. I want any address that is 32 characters long. According to the Bitcoin wiki, Base58 can be as short as 27 characters.


Would the following work?

$ vanitygen -r "1[a-zA-Z0-9]{31}"

How about:

$ vanitygen -r "1TF[a-zA-Z0-9]{29}"
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1081


May Bitcoin be touched by his Noodly Appendage


View Profile
August 21, 2013, 12:24:08 PM
 #7

As short as 26 characters actually:

Code:
Hash160                                                             Address Length
0000000000000000000000000000000000000000        1111111111111111111114oLvT2 27
0000000000000000000000000000000000000001         11111111111111111111BZbvjr 26
0000000000000000000000000000000000000002         11111111111111111111HeBAGj 26
0000000000000000000000000000000000000004         11111111111111111111UpYBrS 26
0000000000000000000000000000000000000008         11111111111111111111ufYVpS 26
0000000000000000000000000000000000000010        111111111111111111112tWLmyD 27
0000000000000000000000000000000000000020        111111111111111111114gFexwh 27
0000000000000000000000000000000000000040        111111111111111111118GEJCAf 27
0000000000000000000000000000000000000080        11111111111111111111FTT1teG 27
0000000000000000000000000000000000000100         1111111111111111111VxYUzGa 26
0000000000000000000000000000000000000200         1111111111111111111znxA3Zk 26
0000000000000000000000000000000000000400        11111111111111111112zdQC4qC 27
0000000000000000000000000000000000000800        11111111111111111114z7QSsiZ 27
0000000000000000000000000000000000001000        11111111111111111118yBYPpbb 27
0000000000000000000000000000000000002000        1111111111111111111GwJ2i64e 27
0000000000000000000000000000000000004000        1111111111111111111YsWcdci1 27
0000000000000000000000000000000000008000       111111111111111111126jzwvK8Y 28
0000000000000000000000000000000000010000        1111111111111111113CUwR5jzj 27
0000000000000000000000000000000000020000        1111111111111111115Pxqs2WgU 27
0000000000000000000000000000000000040000        1111111111111111119nvXxNtWD 27
0000000000000000000000000000000000080000        111111111111111111JaqyjoJka 27
0000000000000000000000000000000000100000        111111111111111111cAgzNhQLf 27
0000000000000000000000000000000000200000       1111111111111111112DLNujfxAn 28
0000000000000000000000000000000000400000       1111111111111111113RfkifdrkF 28
0000000000000000000000000000000000800000       1111111111111111115rLWQoAkU8 28
0000000000000000000000000000000001000000        11111111111111111Ahg1rDUsfi 27
0000000000000000000000000000000002000000        11111111111111111LQM2gwLUSG 27
0000000000000000000000000000000004000000        11111111111111111foh4EJoKCh 27
0000000000000000000000000000000008000000       111111111111111112LcP7ZfGXHF 28
0000000000000000000000000000000010000000       111111111111111113gDmE1r1n5R 28
0000000000000000000000000000000020000000       111111111111111116MSXSt93kn3 28
0000000000000000000000000000000040000000       11111111111111111Bht3tjpJRd8 28
0000000000000000000000000000000080000000       11111111111111111NQm6nQyQJud 28
0000000000000000000000000000000100000000        1111111111111111jpXCZgqjvZA 27
0000000000000000000000000000000200000000       11111111111111112Ue3Q8MoQygj 28
0000000000000000000000000000000400000000       11111111111111113xH5oFeuxw9W 28
0000000000000000000000000000000800000000       11111111111111116uZAbWCMV54h 28
0000000000000000000000000000001000000000       1111111111111111Cp7LC1QTNX5D 28
0000000000000000000000000000002000000000       1111111111111111QdDfP1pM6Wew 28
0000000000000000000000000000004000000000       1111111111111111pFSKm2bQ7EVc 28
0000000000000000000000000000008000000000      11111111111111112dVseX48FDLjy 29
0000000000000000000000000000010000000000       1111111111111114FzkJ378fUCf8 28
0000000000000000000000000000020000000000       1111111111111117WzVb5DB97YyE 28
0000000000000000000000000000040000000000       111111111111111E2yzB9RHWjwMe 28
0000000000000000000000000000080000000000       111111111111111T4xyMHqb4Wssa 28
0000000000000000000000000000100000000000       111111111111111u8vwhagAMLYoK 28
0000000000000000000000000000200000000000      1111111111111112oGrtQAMN6NTLU 29
0000000000000000000000000000400000000000      1111111111111114bYimoKhYrLumT 29
0000000000000000000000000000800000000000      1111111111111118C6SYbeQ7MdYpP 29
0000000000000000000000000001000000000000       11111111111111FPBt6CHo5VvkoR 28
0000000000000000000000000002000000000000       11111111111111VmNmBPab8q7U8q 28
0000000000000000000000000004000000000000       11111111111111zXkXMnABCmjf1C 28
0000000000000000000000000008000000000000      111111111111112z4W3iZKMTgktJu 29
0000000000000000000000000010000000000000      111111111111114y816S7dhq2uXQK 29
0000000000000000000000000020000000000000      111111111111118wF1BsEGQWEWeZF 29
0000000000000000000000000040000000000000      11111111111111GsV1NjTXp1GPx5c 29
0000000000000000000000000080000000000000      11111111111111Yjy1kTv4cvroL1D 29
0000000000000000000000000100000000000000      111111111111126Uw2Vvq8EprNPpx 29
0000000000000000000000000200000000000000      11111111111113Bxs3zrfFUaL6dnB 29
0000000000000000000000000400000000000000      11111111111115Nvj6ziKVxAgwP57 29
0000000000000000000000000800000000000000      11111111111119krTCzRdzuGpXjQ1 29
0000000000000000000000001000000000000000      1111111111111JWhuQyrGzoWRCjgC 29
0000000000000000000000002000000000000000      1111111111111c2QopxhYzc4UvB3P 29
0000000000000000000000004000000000000000     11111111111112D3pcevQ6zCzv6fJu 30
0000000000000000000000008000000000000000     11111111111113R6eEJqoCyR1pxZQF 30
0000000000000000000000010000000000000000      1111111111115qCHTcgbQwpw9AAf3 29
0000000000000000000000020000000000000000      111111111111AfPZvENBptewpSedo 29
0000000000000000000000040000000000000000      111111111111LKn8qTjNenJmKkU4G 29
0000000000000000000000080000000000000000      111111111111feZGfvTkJZcS5Y866 29
0000000000000000000000100000000000000000     1111111111112LJ7YLqvVc8DnsYECa 30
0000000000000000000000200000000000000000     1111111111113fbE5ggqzDFSdoi5hE 30
0000000000000000000000400000000000000000     1111111111116LBTANNgyRVt94oSu9 30
0000000000000000000000800000000000000000     111111111111BfMuKjkNwqzmAjmAka 30
0000000000000000000001000000000000000000      11111111111NKioeUVktgzXSoiKaM 29
0000000000000000000002000000000000000000      11111111111jeScHwzWnNz3iRYira 29
0000000000000000000004000000000000000000     111111111112UHtDatz2Zky6Pgt5Fg 30
0000000000000000000008000000000000000000     111111111113wamSAny48WwBhu2LBp 30
0000000000000000000010000000000000000000     111111111116tAXsLaw7G2sNQEKfWr 30
0000000000000000000020000000000000000000     11111111111CmL4jgAsDX4jjjZYgfd 30
0000000000000000000040000000000000000000     11111111111QXf8UMLjS38UUMCtonb 30
0000000000000000000080000000000000000000     11111111111p4KFwhgTs5Fwwab49WV 30
0000000000000000000100000000000000000000     11111111112d7dWtQMvj9WttDiHXmB 30
0000000000000000000200000000000000000000     11111111114FEG2moirTJ2nmQ8Z52o 30
0000000000000000000400000000000000000000     11111111117VTX4YcShub4aXgKGXdq 30
0000000000000000000800000000000000000000     1111111111Dyv386DtQpB8A4MgXoQQ 30
0000000000000000001000000000000000000000     1111111111Sxq5FBSmpdMFK7bPvQb1 30
0000000000000000002000000000000000000000     1111111111tvf9VMtYeFhVdE5yRkNP 30
0000000000000000004000000000000000000000    11111111112nrKHyin6HWPzFSzPVWXr 31
0000000000000000008000000000000000000000    11111111114ahdaxSZBa1nyVu4gd2AR 31
0000000000000000010000000000000000000000     1111111118AQGAut7N92awzo1iEbvV 30
0000000000000000020000000000000000000000     111111111FKoXLpmDjH4AtzauUfU4f 30
0000000000000000040000000000000000000000     111111111Vec3geXSTZ7LnzAmyYTpC 30
0000000000000000080000000000000000000000     111111111zJD6NJ3sv7DgayLaMM474 30
0000000000000000100000000000000000000000    1111111112ybRBjb6kqDSNAwg3smQuC 31
0000000000000000200000000000000000000000    1111111114xBqNUBCWfRsjLtLxSeeYt 31
0000000000000000400000000000000000000000    1111111118uNfjwMQ2KrkTgmgtSLsbw 31
0000000000000000800000000000000000000000    111111111GokLUsho3eiVvNYNezFaSC 31
0000000000000001000000000000000000000000     11111111YcVfxkQb6JRzqk5kFpQyCv 30
0000000000000002000000000000000000000000    1111111126DzLvVpBBbrzgVAVWoyZ5s 31
0000000000000004000000000000000000000000    111111113BSygqzdMNCizMyKyyUwvia 31
0000000000000008000000000000000000000000    111111115MtxNgzFhjQSyiwexwxwPp7 31
0000000000000010000000000000000000000000    111111119inukNyWQTotxStJvtDKPBS 31
0000000000000020000000000000000000000000    11111111JSapVkx1ovcnutmcrqx4r9X 31
0000000000000040000000000000000000000000    11111111btAdzWu2crEapnYEiXUaCQ8 31
0000000000000080000000000000000000000000   111111112CmLGz2o4EhUAea5US3YTXyY 32
0000000000000100000000000000000000000000    11111113QXfYy4b7UPwLJ99wrwgtEqr 31
0000000000000200000000000000000000000000    11111115p4L6w8BDwnsfbHJtiygnArT 31
0000000000000400000000000000000000000000    1111111Ad7fCsFMStakLBZcnSnBpwBn 31
0000000000000800000000000000000000000000    1111111LFEKQjVhtnAVfN8EZtXEo2i3 31
0000000000001000000000000000000000000000    1111111fVTdpTzQnZKzKjFU8n3XN9qj 31
0000000000002000000000000000000000000000   11111112KyvGdvypa7eyeTVwGYzvk9C5 32
0000000000004000000000000000000000000000   11111113exqYGrxe9EJxHuzsY72GSjRm 32
0000000000008000000000000000000000000000   11111116Jvg5YivHHTcuapzk5CtSEBVA 32
0000000000010000000000000000000000000000    111111BcrMA6SqZZvEpAezV9QpVdj8e 31
0000000000020000000000000000000000000000    111111NEhhKBtg88qUdLJyyHpdaNu16 31
0000000000040000000000000000000000000000    111111jUQPdNnMFGfxFfcxwae9FyJdV 31
0000000000080000000000000000000000000000   1111112TwonFkZhVYLuWLEvtAHFNnWrR 32
0000000000100000000000000000000000000000   1111113vtcZWW8Pz5gp1fUrmKZLHkKpx 32
0000000000200000000000000000000000000000   1111116rnE821FnyANd2KxiXe7ik4qhs 32
0000000000400000000000000000000000000000   111111CiZTF31WawKkF3evS4HEKGPHJT 32
0000000000800000000000000000000000000000   111111QS7uV522AseVV6Jqs7ZTb5Ewa6 32
0000000001000000000000000000000000000000    11111osEoy933LkHyyBcgjE7v9rux6N 31
0000000002000000000000000000000000000000   111112cjUcwH55gVaxwNENTTEqJ87ejy 32
0000000004000000000000000000000000000000   111114ETxEsZ9AMzAvsjTjuuUfVEM7SX 32
0000000008000000000000000000000000000000   111117TvuUk7HKiyLrkTvUpoxKzgaakf 32
0000000010000000000000000000000000000000   11111DvroxVDZeSwgiVvqxecuewfhiZB 32
0000000020000000000000000000000000000000   11111SricuyS8HttNRzrgvJEpJuRhEom 32
0000000040000000000000000000000000000000   11111tiSEpwsFanmjrziNqbUdcpbfxos 32
0000000080000000000000000000000000000000  111112nRsUetjWAaYUizRkgBxGEZWPpGJ 33
0000000100000000000000000000000000000000   11114ZrjxJnU1LA5xSyrWMNuXTzgqYwy 32
0000000200000000000000000000000000000000   111188iUucZw1fKAutxi1hkp3vwS4ji6 32
0000000400000000000000000000000000000000   1111FGRxpE8s2KdLpnvR2QWd6ricBrdf 32
0000000800000000000000000000000000000000   1111VXrvdTGj3eFgeaqq3p2FCiTxreLP 32
0000001000000000000000000000000000000000   1111z4irFuYT6HWNJAgf6d3VQRpRXaNd 32
0000002000000000000000000000000000000000  11112y8ShWp5uBa1jbLNKCF5yorYh53ZZ 33
0000004000000000000000000000000000000000  11114wFtQ2dAoN92UBfjdPVAxci4KZ3Yw 33
0000008000000000000000000000000000000000  11118sWmo4FLbjH3wNLUFmyLvER17Fjzj 33
0000010000000000000000000000000000000000   111Gk2Yb7VgCTZ6sjfwWYwgqTpxFhyNJ 32
0000020000000000000000000000000000000000   111YV46BDzMPv7CkULt26tNfvepPSN4u 32
0000040000000000000000000000000000000000  11125y7BMSyhnqDQVwgm3CmkLrJbKrT3z 33
0000080000000000000000000000000000000000  1113AwDMhtxQafRoztNX5QYVghc2QMcGE 33
0000100000000000000000000000000000000000  1115LsRiQnupAKrczmk39p5zNQD3RLYeg 33
0000200000000000000000000000000000000000  1119gjrRpapdKeiEzYV5JdAyjoR2xrFJe 33
0000400000000000000000000000000000000000  111JNUhreAeFeJRUz5y9cFLxUbpzBFZXu 33
0000800000000000000000000000000000000000  111bjxQiHLHWHbqxyAwJDVguxCexXAYMU 33
0001000000000000000000000000000000000000  112CUupRZfa1aCgvwLsbRzNpuQJyr5qgH 33
0002000000000000000000000000000000000000  113Pxpdr8L929QNrsgkBrykeoocqzPke7 33
0004000000000000000000000000000000000000  115nveGhFfH3HokikNVNixWJccEi6YuH1 33
0008000000000000000000000000000000000000  11AarHYPWKZ5acWSVjykSv1cEDUFejmXd 33
0010000000000000000000000000000000000000  11LAha5n1e7AAE1szUxVtq2DTRwWLNxRX 33
0020000000000000000000000000000000000000  11fLQ9AZ2HDKKT2kyxuznf3Rurt7aHdPM 33
0040000000000000000000000000000000000000 112KfoHL73ZRddu4WxvpzaK5rpim23uSmS 34
0080000000000000000000000000000000000000 113eLbZfD67rGGo82vrez9dAieSX6NNevt 34
0100000000000000000000000000000000000000  16HgC8KRBEhXYbF4riJyJFLSHt34Te5YA 33
0200000000000000000000000000000000000000  1BaMPFdqMUQ46BV8iRcwbVfsam57oBLMM 33
0400000000000000000000000000000000000000  1N9hmWGfhwo7BMyGRrEtBzLkAX9CheRjq 33
0800000000000000000000000000000000000000  1jJQY1YLQtbDMiwXrhUmNygVL3HGcCAxk 33
1000000000000000000000000000000000000000 12Tbp525fpnBRiSt4iPxXkxMyf5ZWzA5TC 34
2000000000000000000000000000000000000000 13vCd93ALeZMrRtm8Rnv4WuixKA7wHLggY 34
4000000000000000000000000000000000000000 16qQFH5KgJ7ihrnXFraq82pSudKEmgJGax 34
8000000000000000000000000000000000000000 1CfoVZ9eMbESQia3WiAfF4dtpFdUQ8uBUz 34

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
🏰 TradeFortress 🏰
CoinLenders / Inputs.io / CoinChat
VIP
Legendary
*
Offline Offline

Activity: 1246
Merit: 1029

reimbursements closed


View Profile
August 22, 2013, 12:29:26 PM
 #8

You want to choose 32 characters?
No. I want any address that is 32 characters long. According to the Bitcoin wiki, Base58 can be as short as 27 characters.


Would the following work?

$ vanitygen -r "1[a-zA-Z0-9]{31}"

How about:

$ vanitygen -r "1TF[a-zA-Z0-9]{29}"

v0.22 doesn't seem to support -r.
xeroc
Sr. Member
****
Offline Offline

Activity: 345
Merit: 250



View Profile
August 22, 2013, 12:49:40 PM
 #9

v0.22 doesn't seem to support -r.

git checkout https://github.com/samr7/vanitygen.git

//EDIT
interesting .. i dont even see a v0.22 in git tag list
manic
Member
**
Offline Offline

Activity: 80
Merit: 10


View Profile
August 23, 2013, 01:43:42 PM
 #10

You want to choose 32 characters?
No. I want any address that is 32 characters long. According to the Bitcoin wiki, Base58 can be as short as 27 characters.


Would the following work?

$ vanitygen -r "1[a-zA-Z0-9]{31}"

How about:

$ vanitygen -r "1TF[a-zA-Z0-9]{29}"

v0.22 doesn't seem to support -r.

-r is cpu only
🏰 TradeFortress 🏰
CoinLenders / Inputs.io / CoinChat
VIP
Legendary
*
Offline Offline

Activity: 1246
Merit: 1029

reimbursements closed


View Profile
August 29, 2013, 10:44:11 AM
 #11

You want to choose 32 characters?
No. I want any address that is 32 characters long. According to the Bitcoin wiki, Base58 can be as short as 27 characters.


Would the following work?

$ vanitygen -r "1[a-zA-Z0-9]{31}"

How about:

$ vanitygen -r "1TF[a-zA-Z0-9]{29}"


Vanitygen doesn't support this.
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1004


Ian Knowles - CIYAM Lead Developer


View Profile WWW
August 29, 2013, 10:47:23 AM
 #12

Why not just use 1TF repeatedly and filter out all non-32 byte addresses?

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
xeroc
Sr. Member
****
Offline Offline

Activity: 345
Merit: 250



View Profile
August 29, 2013, 11:44:51 AM
 #13

You want to choose 32 characters?
No. I want any address that is 32 characters long. According to the Bitcoin wiki, Base58 can be as short as 27 characters.


Would the following work?

$ vanitygen -r "1[a-zA-Z0-9]{31}"

How about:

$ vanitygen -r "1TF[a-zA-Z0-9]{29}"


Vanitygen doesn't support this.

works well here:
$:~> vanitygen -r "1TF[a-zA-Z0-9]{29}"
Pattern: 1TF[a-zA-Z0-9]{29}                                                    
Address: 1TFruxZdjX6gGcnsi5RiJuSKEquFucFn9
Privkey: 5KffTVkH2wj3pHUi2LCQkFYSJiMPWMzCXYhFjvqXStxhU77CmAT
Michael_S
Sr. Member
****
Offline Offline

Activity: 278
Merit: 250


Bitcoin-Note-and-Voucher-Printing-Empowerer


View Profile
December 07, 2013, 12:18:40 PM
Last edit: December 07, 2013, 01:19:13 PM by Michael_S
 #14

No correct answer to the original question of the OP up to now...

So, here's the correct answer for vanitygen 0.22 (tested under Linux) (the option "-k" at the end is optional and makes it generating more addresses after one has been found):

Generate a key with address length=34:
Code:
$ ./vanitygen -r "^1[a-zA-Z0-9]{33}$" -k

Generate a key with address length=33:
Code:
$ ./vanitygen -r "^1[a-zA-Z0-9]{32}$" -k

Generate a key with address length=32 (Hint: This may take a little while...):
Code:
$ ./vanitygen -r "^1[a-zA-Z0-9]{31}$" -k

Generate a key with address length=31 (Warning: This may take quite a while...):
Code:
$ ./vanitygen -r "^1[a-zA-Z0-9]{30}$" -k

Generate a key with address length=30 (Warning: This may take VERY long!):
Code:
$ ./vanitygen -r "^1[a-zA-Z0-9]{31}$" -k

Generate a key with address length=29 (Warning: This may take VERY VERY long!):
Code:
$ ./vanitygen -r "^1[a-zA-Z0-9]{28}$" -k

Generate a key with address length=28 (Warning: This may take VERY VERY VERY long!):
Code:
$ ./vanitygen -r "^1[a-zA-Z0-9]{27}$" -k

Generate a key with address length=27  (Warning: This may take VERY VERY VERY VERY long!):
Code:
$ ./vanitygen -r "^1[a-zA-Z0-9]{26}$" -k


Explanation:
To get *exactly* a certain amount of characters (32 for example), you need a regular expression that includes the indicators for "start of string" (^) and "end of string" ($).

For example the regular expression
Code:
^1[a-zA-Z0-9]{31}$
means:
After the (invisible) start character (^) there is a "1", followed by exactly 31 occurrences of any character a-z or A-Z or 0-9, followed by the (invisible) end character ($).

In contrast, the regular expression
Code:
^1[a-zA-Z0-9]{31}
(i.e. omitting the trailing "$") means that an arbitrary number of characters may follow after the first 32 characters --> so in this case you will end up with a 34 character address in most cases, instead of the desired address of length 32.

A few examples of addresses of 32 characters length generated with above method:
Code:
Pattern: ^1[a-zA-Z0-9]{31}$
Address: 111ewZDvNuUB1vu7xK7KNWwzU35gNJkW
Privkey: 5HrMK2FSRD7dcRJ7unXYLmC6ZA5zSgJP1fdtXdAQ5Xc4tD1U7fk
Pattern: ^1[a-zA-Z0-9]{31}$
Address: 111vB1s4BdUhvoKhdo6waSCqkB8d9tJ1
Privkey: 5J1BgHaSs8o9fPVPTxbRd2jp7ouSAP8eKi5dpcMi1z59RECZs1U
Pattern: ^1[a-zA-Z0-9]{31}$
Address: 111uSRFo91baBW2A8jRqXNJFdhvCFMJK
Privkey: 5Jgv9enDmwpAVkPcZBzZkntBnpSsHutf8amoMv6mPBSDAdvARYj

PS: To generate an address of length 32 characters *or less*, you would do this:
Code:
$ ./vanitygen -r "^1[a-zA-Z0-9]{0,31}$" -k
It means: After "start of string" (^), put a "1" (one), followed by "n" occurrences of a character or number, where "n" can be anything between 0 and 31. This is followed by "end of string" ($).



Michael_S
Sr. Member
****
Offline Offline

Activity: 278
Merit: 250


Bitcoin-Note-and-Voucher-Printing-Empowerer


View Profile
December 07, 2013, 12:40:50 PM
 #15

You want to choose 32 characters?
What he wants to say is: You need a next to infinite amount of time to get one.
I generated 11 addresses of *exactly* 32 characters length each within 10 or 15 minutes, on a more than 7 years old CPU that was already cheap when I bought my PC.

That is not really what I would call "infinite amount of time".

flatfly
Legendary
*
Offline Offline

Activity: 1008
Merit: 1006


View Profile
December 07, 2013, 01:26:39 PM
 #16

Why not simplify your regexes as follows:

rather than: 1[a-zA-Z0-9]{31}
try:            .{32}

and so on...

1111127SpvabYpoeDoiz5L7QPkfiSh2Q. Only donate if you have a reason to.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!