<p>Solved: it appeared to be an "i" but the private key showed it as "l".</p>

CC BY-SA 3.0
2016-12-31T13:18:58.610Z
2016-12-31T13:18:58.610Z
Bart DV
<p>Not too hard to brute-force</p>

<pre><code>static const char* base58 = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
static void mini ( )
{
  char* x = "S6c56bnXQiBjk9mqSY*******NzrRy?";
  QByteArray xx ( x );
  char* n = xx.data ( );

  for ( int i0 ( 0 ); i0 &lt; 58; i0++ ) { n [18] = base58 [i0];
    for ( int i1 ( 0 ); i1 &lt; 58; i1++ ) { n [19] = base58 [i1];
      for ( int i2 ( 0 ); i2 &lt; 58; i2++ ) { n [20] = base58 [i2];
        for ( int i3 ( 0 ); i3 &lt; 58; i3++ ) { n [21] = base58 [i3];
          for ( int i4 ( 0 ); i4 &lt; 58; i4++ ) { n [22] = base58 [i4];
            for ( int i5 ( 0 ); i5 &lt; 58; i5++ ) { n [23] = base58 [i5];
              for ( int i6 ( 0 ); i6 &lt; 58; i6++ ) { n [24] = base58 [i6];
                const MyKey32 sha ( MyKey32::sha256 ( xx ) );
                if ( sha.constData ( ) [0] == 0 )
                {
                  const QByteArray temp ( xx.constData ( ), 30 );
                  const MyKey32 priv ( MyKey32::sha256 ( temp ) );
                  _trace ( QString ( "%1 %2" )
                     .arg ( priv.toStringWif ( false ) )
                     .arg ( priv.getAddressHashClassic ( ).toString ( ) ) );
                }
              }}}}}}}
}
</code></pre>

CC BY-SA 3.0
2016-12-31T13:12:00.667Z
Might be but I'm not a coder and I don't understand your snippet. Anyway, it's just one character that isn't correct and I wonder how in earth this is possible. I will try to brute force manually :-)
Bart DV
CC BY-SA 3.0
2016-12-31T12:58:32.227Z
2016-12-31T12:58:32.227Z
amaclin
<p>When trying to redeem a btcc chip I noticed a bad encoded mini private key. One of the character is "l". Anyway has seen this before? I guess these keys are also base58 normally?
Thanks</p>

CC BY-SA 3.0
2016-12-31T11:15:53.223Z
Have you tried the digit 1, the uppercase i, and the lowercase L?
Pieter Wuille
CC BY-SA 3.0
2016-12-31T11:26:14.840Z
Hi Pieter, I tried I and i (but aren't these excluded as it is base58?).
Bart DV
CC BY-SA 3.0
2016-12-31T11:26:49.073Z
It's not a 1 neither...
Bart DV
CC BY-SA 3.0
2016-12-31T12:40:14.680Z
Please remove the link; it contains enough of your private key to make brute-forcing it worthwile.
maservant
<private-key><physical-coins>
Mini private key with character "l"?
Bart DV
# Mini private key with character "l"?

(Asked by: username_0 on 2016-12-31)

When trying to redeem a btcc chip I noticed a bad encoded mini private key. One of the character is "l". Anyway has seen this before? I guess these keys are also base58 normally?
Thanks

**Tags:** private-key, physical-coins

> **Comments:**
> **username_1**: Have you tried the digit 1, the uppercase i, and the lowercase L?  
> **username_0**: Hi Pieter, I tried I and i (but aren't these excluded as it is base58?).  
> **username_0**: It's not a 1 neither...  
> **username_2**: Please remove the link; it contains enough of your private key to make brute-forcing it worthwile.  

---

## 2 answers

### Answer by username_0 on 2016-12-31. Score: 2

Solved: it appeared to be an "i" but the private key showed it as "l".


---

### Answer by username_3 on 2016-12-31. Score: 0

Not too hard to brute-force
static const char* base58 = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
static void mini ( )
{
  char* x = "S6c56bnXQiBjk9mqSY*******NzrRy?";
  QByteArray xx ( x );
  char* n = xx.data ( );

  for ( int i0 ( 0 ); i0 < 58; i0++ ) { n [18] = base58 [i0];
    for ( int i1 ( 0 ); i1 < 58; i1++ ) { n [19] = base58 [i1];
      for ( int i2 ( 0 ); i2 < 58; i2++ ) { n [20] = base58 [i2];
        for ( int i3 ( 0 ); i3 < 58; i3++ ) { n [21] = base58 [i3];
          for ( int i4 ( 0 ); i4 < 58; i4++ ) { n [22] = base58 [i4];
            for ( int i5 ( 0 ); i5 < 58; i5++ ) { n [23] = base58 [i5];
              for ( int i6 ( 0 ); i6 < 58; i6++ ) { n [24] = base58 [i6];
                const MyKey32 sha ( MyKey32::sha256 ( xx ) );
                if ( sha.constData ( ) [0] == 0 )
                {
                  const QByteArray temp ( xx.constData ( ), 30 );
                  const MyKey32 priv ( MyKey32::sha256 ( temp ) );
                  _trace ( QString ( "%1 %2" )
                     .arg ( priv.toStringWif ( false ) )
                     .arg ( priv.getAddressHashClassic ( ).toString ( ) ) );
                }
              }}}}}}}
}

> **Comments:**
> **username_0**: Might be but I'm not a coder and I don't understand your snippet. Anyway, it's just one character that isn't correct and I wonder how in earth this is possible. I will try to brute force manually :-)  

---

