Skip to content

Repository files navigation

JBIP 39

Build StatusGitHub licenseMaven Central

Java implementation of the BIP 39 specification.

How to use

Create a new mnemonic (a seed phrase)

Dictionarydictionary = EnglishDictionary.instance();
Bip39bip39 = newBip39(dictionary);
byte[] entropy = bip39.generateEntropy(EntropyDesc.ENT_128);
Stringmnemonic = bip39.createMnemonic(entropy);

Convert a mnemonic to a seed

Stringmnemonic = "legal winner thank year wave sausage worth useful legal winner thank yellow";
Stringpassphrase = "TREZOR";
byte[] seed = bip39.createSeed(mnemonic, passphrase);

Download

Download the latest jar via Maven:

<dependency>
<groupId>org.nightcode.crypto</groupId>
<artifactId>jbip39</artifactId>
<version>0.2.1</version>
</dependency>

Credits

Wordlists are from the BIP 0039.

Feedback is welcome. Please don't hesitate to open up a new github issue or simply drop me a line at dmitry@nightcode.org.

About

Java implementation of the BIP 39 specification.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages