Socket
Socket
Sign inDemoInstall

bip39

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bip39 - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

6

index.js

@@ -33,2 +33,8 @@ var Crypto = require('crypto-js')

BIP39.prototype.generateMnemonic = function(strength){
var strength = strength || 128
var entropy = crypto.randomBytes(strength/8).toString('hex')
return this.entropyToMnemonic(entropy)
}
function salt(password) {

@@ -35,0 +41,0 @@ return encode_utf8('mnemonic' + (password || ''))

2

package.json
{
"name": "bip39",
"version": "1.0.2",
"version": "1.0.3",
"description": "Bitcoin BIP39: Mnemonic code for generating deterministic keys",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -20,6 +20,5 @@ bip39

// '5cf2d4a8b0355e90295bdfc565a022a409af063d5365bb57bf74d9528f494bfa4400f53d8349b80fdae44082d7f9541e1dba2b003bcfec9d0d53781ca676651f'
bip39.generateMnemonic() // strength defaults to 128 bits
// 'seed sock milk update focus rotate barely fade car face mechanic mercy'
```
## TODO
- generateMnemonic
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc