public class Mnemonic
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
WORDLIST_LENGTH |
Constructor and Description |
---|
Mnemonic() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
getDataFromWordList(java.lang.String[] words)
Recovers a 16-byte data object based on a word list.
|
static java.lang.String[] |
getWordListFromData(byte[] data)
Generates a word list form a given data object.
|
static boolean |
validateWordList(java.lang.String[] words)
Verifies a word list.
|
public static final int WORDLIST_LENGTH
public static java.lang.String[] getWordListFromData(byte[] data) throws java.security.NoSuchAlgorithmException
data
- byte[] object expected to be 16-bytes in length.java.security.NoSuchAlgorithmException
public static boolean validateWordList(java.lang.String[] words) throws java.security.NoSuchAlgorithmException
words
- List of 12 words to use.java.security.NoSuchAlgorithmException
public static byte[] getDataFromWordList(java.lang.String[] words) throws java.security.NoSuchAlgorithmException
words
- List of 12 words to use to recover the 16-byte data object.java.security.NoSuchAlgorithmException