1.4.1 • Published 5 years ago

private-key-recovery v1.4.1

Weekly downloads
12
License
MIT
Repository
github
Last release
5 years ago

private-key-recovery

Build Status dependencies License: MIT

Description

Recovers a broken private key that misses up to 5 characters within one hour or faster. It brute forces its way until the checksum (base58check) is correct for the private key (thus having found the original key). Make sure to place '?' at places where the characters are unknown. Currently only 52 character WIF keys are supported. It could find 6 missing characters, though this would take approximately one day.

Installation

yarn add private-key-recovery 
npm i private-key-recovery

Import it:

var { recover } = require('private-key-recovery')

Usage

You can do

// question marks throughout the key
recover('KwNryX9f7W?jXNPjn?aefBoh?wG9GPK6Y7Vh?JKSwsxL8oy5T?q1') 

// or e.g. all question marks next to each other
recover('wNryX9f7WSjXNPjnsaefBohLwG9GPK6Y7VhvJKSwsxL8oy?????')  

The recovered private key will show up in your logs and it will be the return value of the function recover.

The function recover takes additional arguments. You can tell it how frequently it should log to the console (2nd argument, number) and on what number it should start with iterating (3rd argument, number).

The order of base58 that is implemented in this module is 123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ

So it starts at 1 and it ends on Z.

Logging

Every 100.000 iterations an update is sent to the console. You can pass a numeric value as the second argument to change this. npm.io

License

MIT © Guus Baggen

1.4.1

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago