Skip to content

Python implementation of diceware using the bip39 wordlist.

Notifications You must be signed in to change notification settings

jeffkitson-music/jdice2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

🎲 jdice2

Python implementation of diceware using the bip39 wordlist.

📚 About

Generate a pseudorandom phrase from the bip39 wordlist for passphrases or seed phrases. This script implements Arman the Parman's method to derive the seed phrase.

Note: The old method of simulating actual dice is found in the "old" folder.

Inspiration:

👀 Usage

import jdice2


seed_phrase = jdice2.get_bip39()
print(seed_phrase)
# helmet distance wedding frequent chunk burst, etc...


# Other utilities

# returns full word based on first four chararcters
ff = "corr"
full_word = jdice2.first_four(ff)
print(full_word)
# correct


# returns a randomly generated password - Not wordlist related, just convenient
password = jdice2.generate_password(passwordlength=16)
print(password)
# EfYZ<8L,9PeyM??f

⚠️ Disclaimer and Security Warnings

  • This is a hobby project, proof-of-concept, and for learning purposes only.
  • Do not use this to generate real seed phrases.
  • Pseudorandom isn't random.
  • If you do proceed at your own risk, heed the usual warnings about generating passwords and seed phrases securely in a fully offline, air-gapped environment.
  • Need something full-featured? Try Ian Coleman's bip39 tools.

📣 Credits

About

Python implementation of diceware using the bip39 wordlist.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages