Skip to content

Mnemonic Key Generator - complete with timing charts. Customizable paramaters.

Notifications You must be signed in to change notification settings

02bwilson/Mnemonic-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mnemonic Key Generator Tweet

Mnemonic Key Generator is a Python library for generating mnemonic phrases. It allows for the ability to specify the word count, min word length, repeatability, and a custom word-list (JSON formatted).

Installation

Clone the repository, and copy the needed files to your project. All that is needed is mnemonic_generator.py and wordlist.json

Usage

from mnemonic_generator import generateMnemonic

# returns your mnemonic
generateMnemonic(word_count, allow_repeating, wordlist, min_length)
    '''
    Parameters:
        word_count: The number of words for the mnemoinic. DEFAULT = 12
        allow_repeating: Allow words to repeat.  DEFAULT = FALSE
        wordlist: Specify file to use custom wordlist. Note - You can also just add to the given wordlist. DEFAULT = None
        min_length: The minimum length of the words in the mnemoinic. DEFAULT = 3
    Returns:
        str[]: List of the mnemoinic's composition.
    '''

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

cc4.0

About

Mnemonic Key Generator - complete with timing charts. Customizable paramaters.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages