bip38-smart
A JavaScript component that adheres to the BIP38 standard to secure your crypto currency private keys. Fully compliant with Node.js and the browser (via Browserify).
Why?
BIP38 is a standard process to encrypt Bitcoin, SmartCash and crypto currency private keys that is imprevious to brute force attacks thus protecting the user.
Package Info
- github: https://github.com/SmartCash/bip38
- issues: https://github.com/SmartCash/bip38/issues
- bip38 bitcoin: http://cryptocoinjs.com/modules/currency/bip38/
- license: MIT
Usage
Installation
npm install --save bip38-smart
API
encrypt(buffer, compressed, passphrase[, progressCallback, scryptParams])
var bip38 =var wif =var myWifString = 'VNUeptnSW5iY8F8Drn46uKXkrSmet8a7wSTzvWRHhjjbWAaTY5AW'var decoded = wifvar encryptedKey = bip38console// => '6PYNiZZBhoCLVv67xCWXDzMVfqspgZxX3X6EXMpFpcmiqs4yH7Bw8nKuaT'aT'
decrypt(encryptedKey, passhprase[, progressCallback, scryptParams])
var bip38 =var wif =var encryptedKey = '6PYNiZZBhoCLVv67xCWXDzMVfqspgZxX3X6EXMpFpcmiqs4yH7Bw8nKuaT'var decryptedKey = bip38console// => 'VNUeptnSW5iY8F8Drn46uKXkrSmet8a7wSTzvWRHhjjbWAaTY5AW'
References
- https://github.com/bitcoin/bips/blob/master/bip-0038.mediawiki
- https://github.com/pointbiz/bitaddress.org/issues/56 (Safari 6.05 issue)
- https://github.com/casascius/Bitcoin-Address-Utility/tree/master/Model
- https://github.com/nomorecoin/python-bip38-testing/blob/master/bip38.py
- https://github.com/pointbiz/bitaddress.org/blob/master/src/ninja.key.js